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 3c67e4806e
commit f17e2478e2
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]
}
/**