From 605e087cae280b8a98770fe7d10797dac8373068 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 8 Jan 2026 14:05:52 +0000 Subject: [PATCH] Fix TypeScript error in ComponentTreeRenderer Co-authored-by: johndoe6345789 <224850594+johndoe6345789@users.noreply.github.com> --- src/utils/ComponentTreeRenderer.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/ComponentTreeRenderer.tsx b/src/utils/ComponentTreeRenderer.tsx index ef07d14..585deda 100644 --- a/src/utils/ComponentTreeRenderer.tsx +++ b/src/utils/ComponentTreeRenderer.tsx @@ -109,7 +109,7 @@ function interpolateValue(value: any, data: Record): 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}`);