Fix TypeScript error in ComponentTreeRenderer

Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-08 14:05:52 +00:00
parent afa910e6b8
commit 605e087cae

View File

@@ -109,7 +109,7 @@ function interpolateValue(value: any, data: Record<string, any>): any {
// Check if it's a template string
const templateMatch = value.match(/^\{\{(.+)\}\}$/);
if (templateMatch) {
if (templateMatch && templateMatch[1]) {
const expression = templateMatch[1].trim();
try {
const func = new Function(...Object.keys(data), `return ${expression}`);