if the lineModel is nil, default to a none style.

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2024-03-26 16:51:17 -05:00
parent 6453272731
commit 81623520d2

View File

@ -78,6 +78,9 @@ public class TabsListItemModel: ListItemModel, ParentMoleculeModelProtocol {
tabs = try typeContainer.decode(TabsModel.self, forKey: .tabs)
molecules = try typeContainer.decodeModels2D(codingKey: .molecules)
try super.init(from: decoder)
if line == nil {
self.line = LineModel(type: .none)
}
}
public override func encode(to encoder: Encoder) throws {