Use getObjectByRef directly for editor.getCurrentPageMeta syscall

This commit is contained in:
Zef Hemel
2026-01-22 11:39:43 +01:00
parent 0f37cc1a50
commit 27d4ab6339
+1 -6
View File
@@ -42,12 +42,7 @@ export function editorSyscalls(client: Client): SysCallMapping {
},
"editor.getCurrentPageMeta": (): Promise<PageMeta | undefined> => {
const name = client.currentName();
return client.clientSystem.localSyscall("index.getObjectByRef", [
name,
"page",
name,
]);
// return client.ui.viewState.current?.meta;
return client.objectIndex.getObjectByRef(name, "page", name);
},
"editor.getCurrentPath": (_ctx): string => {
return client.currentPath();