Fix crash generating bindable properties for an empty data provider ID

This commit is contained in:
Andrew Kingston 2021-03-25 16:17:56 +00:00
parent 6442177f72
commit a242d19f28
1 changed files with 1 additions and 4 deletions

View File

@ -366,10 +366,7 @@ function bindingReplacement(bindableProperties, textWithBindings, convertTo) {
* {{ literal [componentId] }}
*/
function extractLiteralHandlebarsID(value) {
if (!value) {
return null
}
return value.match(/{{\s*literal[\s\[]+([a-fA-F0-9]+)[\s\]]*}}/)[1]
return value?.match(/{{\s*literal[\s\[]+([a-fA-F0-9]+)[\s\]]*}}/)?.[1]
}
/**