Prevent crash when determining datasource schema for non string type values
This commit is contained in:
parent
7d40c0056a
commit
72ff7ce122
|
@ -1004,7 +1004,10 @@ const bindingReplacement = (
|
|||
* {{ literal [componentId] }}
|
||||
*/
|
||||
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