This commit is contained in:
Rizky 2024-03-31 09:38:15 +07:00
parent d148e20d2c
commit cda1a66c60
1 changed files with 34 additions and 32 deletions

View File

@ -111,9 +111,9 @@ export const code_edit: SAction["code"]["edit"] = async function (
});
}
return jscript
return jscript;
} catch (e: any) {
console.log('e', e)
console.log("e", e);
return e.message.toString();
}
} else {
@ -219,6 +219,7 @@ const findId = (mitem: MContent | MRoot, id: string) => {
let found: null | MItem = null;
const m = mitem as MItem;
if (m) {
if (m.get("id") === id) {
return m;
}
@ -250,4 +251,5 @@ const findId = (mitem: MContent | MRoot, id: string) => {
}
if (found) return found;
}
};