Handle non-matched string to state
This commit is contained in:
parent
cfa666cf9c
commit
41b9aaf3e1
1 changed files with 3 additions and 1 deletions
|
|
@ -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];
|
||||
|
||||
}
|
||||
Loading…
Reference in a new issue