From 2f535c3f3f9215ea5ef070ca147be465165de469 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Mon, 3 Aug 2026 14:25:39 +0200 Subject: [PATCH] :bug: Prevent unexpected exception in swatch* component --- frontend/src/app/main/ui/ds/utilities/swatch.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/ds/utilities/swatch.cljs b/frontend/src/app/main/ui/ds/utilities/swatch.cljs index 2a506bcc74..63c652bd21 100644 --- a/frontend/src/app/main/ui/ds/utilities/swatch.cljs +++ b/frontend/src/app/main/ui/ds/utilities/swatch.cljs @@ -65,7 +65,7 @@ (uc/gradient-type->string (:type gradient)) (some? image) - (:name image))))) + (or (:name image) (tr "media.image")))))) (def ^:private schema:swatch [:map {:title "SchemaSwatch"}