1
0
Fork 0
mirror of synced 2024-06-25 17:40:38 +12:00

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

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]
}
/**