From 2a998a2dcc3479d7d4b29bbe34626afa9f11f234 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 13 Mar 2024 13:29:50 +0100 Subject: [PATCH 1/3] :bug: Fix problem when expanding components tab --- frontend/src/app/main/ui/workspace/sidebar/assets/common.cljs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/src/app/main/ui/workspace/sidebar/assets/common.cljs b/frontend/src/app/main/ui/workspace/sidebar/assets/common.cljs index 888143fdbd..4c6fa807cb 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/assets/common.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/assets/common.cljs @@ -142,7 +142,7 @@ on-collapsed (mf/use-fn - (mf/deps file-id section open?) + (mf/deps file-id section open? assets-count) (fn [_] (when (< 0 assets-count) (st/emit! (dw/set-assets-section-open file-id section (not open?)))))) From c47fe2954a739a1a75dc3a5aed214cedb5037e44 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 13 Mar 2024 13:34:01 +0100 Subject: [PATCH 2/3] :bug: Fix problem with typography sample --- .../app/main/ui/workspace/sidebar/options/menus/typography.cljs | 1 + 1 file changed, 1 insertion(+) diff --git a/frontend/src/app/main/ui/workspace/sidebar/options/menus/typography.cljs b/frontend/src/app/main/ui/workspace/sidebar/options/menus/typography.cljs index 0d7977266f..44d3de561a 100644 --- a/frontend/src/app/main/ui/workspace/sidebar/options/menus/typography.cljs +++ b/frontend/src/app/main/ui/workspace/sidebar/options/menus/typography.cljs @@ -441,6 +441,7 @@ [{:keys [visible? typography editable? name-input-ref on-close on-change on-name-blur local? navigate-to-library on-key-down]}] (let [ref (mf/use-ref nil) font-data (fonts/get-font-data (:font-id typography))] + (fonts/ensure-loaded! (:font-id typography)) (mf/use-effect (mf/deps visible?) From b00b77895f7bf64b35b2a697abbf3f9bdf781c03 Mon Sep 17 00:00:00 2001 From: "alonso.torres" Date: Wed, 13 Mar 2024 14:07:36 +0100 Subject: [PATCH 3/3] :bug: Fix comment number in sidebar --- frontend/src/app/main/data/comments.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/frontend/src/app/main/data/comments.cljs b/frontend/src/app/main/data/comments.cljs index ce8e1bd6d5..5762229d4e 100644 --- a/frontend/src/app/main/data/comments.cljs +++ b/frontend/src/app/main/data/comments.cljs @@ -274,7 +274,9 @@ (ptk/reify ::delete-comment ptk/UpdateEvent (update [_ state] - (d/update-in-when state [:comments thread-id] dissoc id)) + (-> state + (d/update-in-when [:comments thread-id] dissoc id) + (d/update-in-when [:comment-threads thread-id :count-comments] dec))) ptk/WatchEvent (watch [_ state _]