From a813313a925fcd1f7864ade7258244eadb0347ed Mon Sep 17 00:00:00 2001 From: Damodaram Date: Mon, 26 Apr 2021 12:48:11 +0530 Subject: [PATCH] body to generic model --- .../VerticalCombinationViews/EyebrowHeadlineBodyLinkModel.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MVMCoreUI/Atomic/Molecules/VerticalCombinationViews/EyebrowHeadlineBodyLinkModel.swift b/MVMCoreUI/Atomic/Molecules/VerticalCombinationViews/EyebrowHeadlineBodyLinkModel.swift index ec646f86..83f5b4bd 100644 --- a/MVMCoreUI/Atomic/Molecules/VerticalCombinationViews/EyebrowHeadlineBodyLinkModel.swift +++ b/MVMCoreUI/Atomic/Molecules/VerticalCombinationViews/EyebrowHeadlineBodyLinkModel.swift @@ -73,7 +73,7 @@ public class EyebrowHeadlineBodyLinkModel: MoleculeModelProtocol, ParentMolecule backgroundColor = try typeContainer.decodeIfPresent(Color.self, forKey: .backgroundColor) eyebrow = try typeContainer.decodeIfPresent(LabelModel.self, forKey: .eyebrow) headline = try typeContainer.decodeMoleculeIfPresent(codingKey: .headline) - body = try typeContainer.decodeIfPresent(LabelModel.self, forKey: .body) + body = try typeContainer.decodeMoleculeIfPresent(codingKey: .body) link = try typeContainer.decodeIfPresent(LinkModel.self, forKey: .link) setDefaults() // TODO: This class initializers should ensure that atleast one item is set.