Merge pull request #112 from Safelite/feature/CSR-242

Handle non-matched string to state
This commit is contained in:
Frank Rua 2021-12-22 09:33:17 -05:00 committed by GitHub
commit 65fafb1b25
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,7 @@ function mapStringToState(str) {
if (storeState[s] != undefined) {
storeState = storeState[s];
} else {
return false;
return ''; // if we can't map our string to state data, return an empty string.
}
}
@ -96,5 +96,7 @@ function processWidgetItemForReplacement(widgetModel, key) {
return widgetModel[key];
}
// If we have something else like a number, boolean, etc. just return it
return widgetModel[key];
}