wip fix
This commit is contained in:
parent
d148e20d2c
commit
cda1a66c60
|
|
@ -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;
|
||||
}
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue