From acae8708f520dfd7b34082a3a3df905b9afeb9e0 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Tue, 20 Feb 2024 15:28:16 +0100 Subject: [PATCH] :bug: Fix ui problem when user selects a recent-color for adding to the assets --- frontend/src/app/main/ui/workspace/colorpicker.cljs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/frontend/src/app/main/ui/workspace/colorpicker.cljs b/frontend/src/app/main/ui/workspace/colorpicker.cljs index cca2bde521..b80536e2cc 100644 --- a/frontend/src/app/main/ui/workspace/colorpicker.cljs +++ b/frontend/src/app/main/ui/workspace/colorpicker.cljs @@ -422,8 +422,9 @@ (reset! dirty? (not= data new-data)) (reset! last-change new-data) - (when (fn? on-change) - (on-change new-data))))] + (if (fn? on-change) + (on-change new-data) + (st/emit! (dc/update-colorpicker new-data)))))] (mf/with-effect [] #(when (and @dirty? @last-change on-close)