fix scope

This commit is contained in:
Rizky 2024-06-22 16:04:14 +07:00
parent 3b0f394b07
commit ffc4f251bf
1 changed files with 1 additions and 1 deletions

View File

@ -48,7 +48,7 @@ export const declareScope = (p: PG, meta: IMeta, monaco: Monaco) => {
}
if (m.editor_props) {
for (const [k, v] of Object.entries(m.editor_props) as any) {
vars[k] = { mode: "prop", val: v };
vars[k] = { mode: "prop", val: typeof v === "object" ? v : typeof v };
}
}