fix
This commit is contained in:
parent
eeb32edf77
commit
4f9323bff7
|
|
@ -21,6 +21,7 @@ export const CPOption: FC<CPArgs> = ({ prop, onChange, editCode, reset }) => {
|
||||||
if (prop.meta?.options || prop.meta?.optionsBuilt) {
|
if (prop.meta?.options || prop.meta?.optionsBuilt) {
|
||||||
if (!local.loaded) {
|
if (!local.loaded) {
|
||||||
try {
|
try {
|
||||||
|
local.loaded = true;
|
||||||
const args = {
|
const args = {
|
||||||
...window.exports,
|
...window.exports,
|
||||||
db: p.script.db,
|
db: p.script.db,
|
||||||
|
|
|
||||||
|
|
@ -84,7 +84,7 @@ export const ETreeItemAction: FC<{
|
||||||
|
|
||||||
{resetJSXProp && (
|
{resetJSXProp && (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
content="Reset JSX"
|
content="Generate JSX"
|
||||||
className={cx("text-purple-600 mx-1")}
|
className={cx("text-purple-600 mx-1")}
|
||||||
onClick={async () => {
|
onClick={async () => {
|
||||||
if (mitem) {
|
if (mitem) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue