small fix encoding numbered list
This commit is contained in:
parent
a57f07c22b
commit
8479ed605a
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user