Prevent crash when determining datasource schema for non string type values
This commit is contained in:
parent
6caea83498
commit
b638324ce2
|
@ -1004,7 +1004,10 @@ const bindingReplacement = (
|
||||||
* {{ literal [componentId] }}
|
* {{ literal [componentId] }}
|
||||||
*/
|
*/
|
||||||
const extractLiteralHandlebarsID = value => {
|
const extractLiteralHandlebarsID = value => {
|
||||||
return value?.match(/{{\s*literal\s*\[+([^\]]+)].*}}/)?.[1]
|
if (!value || typeof value !== "string") {
|
||||||
|
return null
|
||||||
|
}
|
||||||
|
return value.match(/{{\s*literal\s*\[+([^\]]+)].*}}/)?.[1]
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue