From 366e7dad69b3065d43e2d7eb82c98f03815d798d Mon Sep 17 00:00:00 2001 From: Rizky Date: Mon, 19 Aug 2024 14:41:14 +0700 Subject: [PATCH] fixing prop option --- .../src/nova/ed/panel/side/prop-instance/prop-option.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/web/src/nova/ed/panel/side/prop-instance/prop-option.tsx b/app/web/src/nova/ed/panel/side/prop-instance/prop-option.tsx index 4a0ed82d..bd8b9d97 100644 --- a/app/web/src/nova/ed/panel/side/prop-instance/prop-option.tsx +++ b/app/web/src/nova/ed/panel/side/prop-instance/prop-option.tsx @@ -95,6 +95,12 @@ export const EdPropInstanceOptions: FC<{ if (meta.item.component) { for (const [k, v] of Object.entries(meta.item.component.props)) { if (v.valueBuilt && v.valueBuilt.length > 3) { + if (v.valueBuilt.startsWith(`const _jsxFileName = "";`)) { + v.valueBuilt = v.valueBuilt.substring( + `const _jsxFileName = "";`.length + ); + } + try { const evn = new Function( "arg",