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:
commit
626b8082df
@ -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)
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user