From 8df488d0b7ba1d847444e73c5b6dc6cc1aef36ee Mon Sep 17 00:00:00 2001 From: Alejandro Alonso Date: Mon, 22 Dec 2025 16:59:47 +0100 Subject: [PATCH] :bug: Fix object added in different page (#7988) --- frontend/src/app/main/data/workspace.cljs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/data/workspace.cljs b/frontend/src/app/main/data/workspace.cljs index 93db68bd85..a8077fe15d 100644 --- a/frontend/src/app/main/data/workspace.cljs +++ b/frontend/src/app/main/data/workspace.cljs @@ -270,8 +270,12 @@ (ptk/reify ::process-wasm-object ptk/EffectEvent (effect [_ state _] - (let [objects (dsh/lookup-page-objects state)] - (wasm.api/process-object (get objects id)))))) + (let [objects (dsh/lookup-page-objects state) + shape (get objects id)] + ;; Only process objects that exist in the current page + ;; This prevents errors when processing changes from other pages + (when shape + (wasm.api/process-object shape)))))) (defn initialize-workspace [team-id file-id]