From 8479ed605a4694bf43902d352a425904089c160a Mon Sep 17 00:00:00 2001 From: "Pfeil, Scott Robert" Date: Wed, 15 Apr 2020 18:09:10 -0400 Subject: [PATCH] small fix encoding numbered list --- .../VerticalCombinationViews/Lists/NumberedListModel.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) } }