From eddfc4c4b22ffeec1ca595f5ccd45b06f33a7d75 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Thu, 19 Feb 2026 15:57:14 +0100 Subject: [PATCH] :bug: Fix problem with createText in plugins --- frontend/src/app/plugins/api.cljs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/plugins/api.cljs b/frontend/src/app/plugins/api.cljs index 00a59b0011..14effac100 100644 --- a/frontend/src/app/plugins/api.cljs +++ b/frontend/src/app/plugins/api.cljs @@ -27,6 +27,7 @@ [app.main.data.workspace.media :as dwm] [app.main.data.workspace.selection :as dws] [app.main.data.workspace.wasm-text :as dwwt] + [app.main.features :as features] [app.main.fonts :refer [fetch-font-css]] [app.main.router :as rt] [app.main.store :as st] @@ -365,8 +366,10 @@ (cb/add-object shape))] (st/emit! (ch/commit-changes changes) - (se/event plugin-id "create-shape" :type :text) - (dwwt/resize-wasm-text-debounce (:id shape))) + (se/event plugin-id "create-shape" :type :text)) + + (when (features/active-feature? @st/state "render-wasm/v1") + (st/emit! (dwwt/resize-wasm-text-debounce (:id shape)))) (shape/shape-proxy plugin-id (:id shape)))))