fixed bug

Signed-off-by: Matt Bruce <matt.bruce@verizon.com>
This commit is contained in:
Matt Bruce 2022-05-10 12:14:13 -05:00
parent 33100758b8
commit c5281fa390

View File

@ -33,7 +33,7 @@ public extension TemplateProtocol {
guard let pageJSON = json else { return }
let delegateObject = (self as? MVMCoreViewControllerProtocol)?.delegateObject?() as? MVMCoreUIDelegateObject
let data = try JSONSerialization.data(withJSONObject: pageJSON)
let decoder = try JSONDecoder.create(delegateObject: delegateObjectIVar)
let decoder = try JSONDecoder.create(delegateObject: delegateObject)
templateModel = try decodeTemplate(using: decoder, from: data)
// Add additional required behaviors if applicable.