From 27d4ab63394bbf117d8ff705d209cd3a56cd22a2 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Thu, 22 Jan 2026 11:39:43 +0100 Subject: [PATCH] Use getObjectByRef directly for editor.getCurrentPageMeta syscall --- client/plugos/syscalls/editor.ts | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/client/plugos/syscalls/editor.ts b/client/plugos/syscalls/editor.ts index 84b59579..f53fcbc0 100644 --- a/client/plugos/syscalls/editor.ts +++ b/client/plugos/syscalls/editor.ts @@ -42,12 +42,7 @@ export function editorSyscalls(client: Client): SysCallMapping { }, "editor.getCurrentPageMeta": (): Promise => { 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();