From e11f64f0a4e298bdc3117dec298994ed6429836d Mon Sep 17 00:00:00 2001 From: "Robinson, Blake" Date: Thu, 19 Dec 2019 13:41:27 -0500 Subject: [PATCH] Changed to optionalStringForKey --- MVMCoreUI/Atoms/Buttons/Link.swift | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/MVMCoreUI/Atoms/Buttons/Link.swift b/MVMCoreUI/Atoms/Buttons/Link.swift index 9116cc51..10aae78b 100644 --- a/MVMCoreUI/Atoms/Buttons/Link.swift +++ b/MVMCoreUI/Atoms/Buttons/Link.swift @@ -100,7 +100,9 @@ extension Link: MVMCoreUIMoleculeViewProtocol { titleLabel?.numberOfLines = 0 titleLabel?.lineBreakMode = .byWordWrapping; - setTitle(unwrappedJson.stringForkey(KeyTitle), for: .normal) + if let title = unwrappedJson.optionalStringForKey(KeyTitle) { + setTitle(title, for: .normal) + } if let enabled = unwrappedJson[KeyEnabled] as? Bool { isEnabled = enabled