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 (!local.loaded) {
|
||||
try {
|
||||
local.loaded = true;
|
||||
const args = {
|
||||
...window.exports,
|
||||
db: p.script.db,
|
||||
|
|
|
|||
|
|
@ -84,7 +84,7 @@ export const ETreeItemAction: FC<{
|
|||
|
||||
{resetJSXProp && (
|
||||
<Tooltip
|
||||
content="Reset JSX"
|
||||
content="Generate JSX"
|
||||
className={cx("text-purple-600 mx-1")}
|
||||
onClick={async () => {
|
||||
if (mitem) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue