From 4d0a3efc5c9d6a62fae5251230144add9d8c9865 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 8 Jun 2026 11:33:36 +0200 Subject: [PATCH] :bug: Fix plugin API crash when setting text fills (#10051) The `update-text-range` event's `watch` method was returning a bare potok event object (`dwwt/resize-wasm-text-debounce id`) directly inside `rx/concat`, instead of wrapping it in `rx/of`. This caused RxJS to throw "You provided an invalid object where a stream was expected" when a plugin set text fills via the Plugin API. The fix wraps the event in `rx/of` so it becomes a valid Observable, matching the pattern used elsewhere in the codebase (e.g., `clipboard.cljs` lines 1050/1082 and `texts.cljs` line 1232). Signed-off-by: Andrey Antukh --- frontend/src/app/main/data/workspace/texts.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/main/data/workspace/texts.cljs b/frontend/src/app/main/data/workspace/texts.cljs index ae72162316..6d6f1b691b 100644 --- a/frontend/src/app/main/data/workspace/texts.cljs +++ b/frontend/src/app/main/data/workspace/texts.cljs @@ -411,7 +411,7 @@ (rx/concat (rx/of (dwsh/update-shapes shape-ids update-fn)) (if (features/active-feature? state "render-wasm/v1") - (dwwt/resize-wasm-text-debounce id) + (rx/of (dwwt/resize-wasm-text-debounce id)) (rx/empty))))))) (defn update-root-attrs