Merge branch 'bugfix/CXTDT-531317' into 'release/20_0_0'

Digital PCT265 defect CXTDT-531317: Give the default page type for those that send an empty string.

### Summary
Allow openURL to send an empty string pageType.

### JIRA Ticket
https://onejira.verizon.com/browse/CXTDT-531317

See merge request https://gitlab.verizon.com/BPHV_MIPS/mvm_core_ui/-/merge_requests/1134
This commit is contained in:
Hedden, Kyle Matthew 2024-06-21 15:18:53 +00:00
commit 626b8082df

View File

@ -83,6 +83,9 @@ import Foundation
let typeContainer = try decoder.container(keyedBy: CodingKeys.self)
if let defaultPageType = Self.defaultPageType() {
pageType = try typeContainer.decodeIfPresent(String.self, forKey: .pageType) ?? defaultPageType
if pageType.isEmpty {
pageType = defaultPageType
}
} else {
pageType = try typeContainer.decode(String.self, forKey: .pageType)
}