fix
This commit is contained in:
parent
366e7dad69
commit
5aaaa4e03d
|
|
@ -96,9 +96,7 @@ 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.substring(
|
v.valueBuilt = `(() => { ${v.valueBuilt} })()`;
|
||||||
`const _jsxFileName = "";`.length
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue