From eb02f420ece2f0a8e4528279b087a3cc90400194 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 5 Aug 2020 15:44:55 +0200 Subject: [PATCH] :bug: Assign the default color on rendering text object. --- frontend/src/uxbox/main/ui/shapes/text.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/uxbox/main/ui/shapes/text.cljs b/frontend/src/uxbox/main/ui/shapes/text.cljs index 1ffac80860..ee4b4a86d6 100644 --- a/frontend/src/uxbox/main/ui/shapes/text.cljs +++ b/frontend/src/uxbox/main/ui/shapes/text.cljs @@ -123,7 +123,9 @@ (let [colors (into #{} (comp (map :fill) (filter string?)) (tree-seq map? :children (:content shape)))] - (apply str (interpose "," colors)))) + (if (empty? colors) + "#000000" + (apply str (interpose "," colors))))) (mf/defc text-shape {::mf/wrap-props false}