From 05b6aeef3eb130a5a1ef580cb96186d962a73c44 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Tue, 6 May 2025 14:02:56 +0200 Subject: [PATCH] :bug: Fix problem with editor v2 --- frontend/src/app/main/ui/workspace/viewport_wasm.cljs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/viewport_wasm.cljs b/frontend/src/app/main/ui/workspace/viewport_wasm.cljs index 1222000fa3..0a1a84cb74 100644 --- a/frontend/src/app/main/ui/workspace/viewport_wasm.cljs +++ b/frontend/src/app/main/ui/workspace/viewport_wasm.cljs @@ -104,7 +104,6 @@ focus (mf/deref refs/workspace-focus-selected) workspace-editor-state (mf/deref refs/workspace-editor-state) - workspace-v2-editor-state (mf/deref refs/workspace-v2-editor-state) file-id (get file :id) objects (get page :objects) @@ -300,10 +299,8 @@ (fn [] (wasm.api/clear-canvas)))) - (mf/with-effect [show-text-editor? workspace-editor-state workspace-v2-editor-state edition] - (let [editor-state (get workspace-editor-state edition) - v2-editor-state (get workspace-v2-editor-state edition) - active-editor-state (or v2-editor-state editor-state)] + (mf/with-effect [show-text-editor? workspace-editor-state edition] + (let [active-editor-state (get workspace-editor-state edition)] (when (and show-text-editor? active-editor-state) (let [content (-> active-editor-state (ted/get-editor-current-content)