This commit is contained in:
Rizky 2024-08-19 14:48:55 +07:00
parent 5aaaa4e03d
commit 4c9aa6f4a4
1 changed files with 3 additions and 1 deletions

View File

@ -96,7 +96,9 @@ export const EdPropInstanceOptions: FC<{
for (const [k, v] of Object.entries(meta.item.component.props)) { for (const [k, v] of Object.entries(meta.item.component.props)) {
if (v.valueBuilt && v.valueBuilt.length > 3) { if (v.valueBuilt && v.valueBuilt.length > 3) {
if (v.valueBuilt.startsWith(`const _jsxFileName = "";`)) { if (v.valueBuilt.startsWith(`const _jsxFileName = "";`)) {
v.valueBuilt = `(() => { ${v.valueBuilt} })()`; v.valueBuilt = `(() => { ${v.valueBuilt.replace(
`const _jsxFileName = ""; return `
)} })()`;
} }
try { try {