This commit is contained in:
Rizky 2023-10-18 02:17:16 +00:00
parent eeb32edf77
commit 4f9323bff7
2 changed files with 2 additions and 1 deletions

View File

@ -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,

View File

@ -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) {