diff --git a/MVMCoreUI/Atomic/Molecules/VerticalCombinationViews/Lists/NumberedListModel.swift b/MVMCoreUI/Atomic/Molecules/VerticalCombinationViews/Lists/NumberedListModel.swift index f58a62ff..eeacb98d 100644 --- a/MVMCoreUI/Atomic/Molecules/VerticalCombinationViews/Lists/NumberedListModel.swift +++ b/MVMCoreUI/Atomic/Molecules/VerticalCombinationViews/Lists/NumberedListModel.swift @@ -38,9 +38,9 @@ import Foundation var models: [MoleculeModelProtocol] = [] for molecule in molecules { - models.append((molecule as! MoleculeStackItemModel).molecule) + models.append(((molecule as! MoleculeStackItemModel).molecule as! StringAndMoleculeModel).molecule) } - try container.encodeModels(molecules, forKey: .list) + try container.encodeModels(models, forKey: .list) } }