fix: buggy selection hightlights (#9074)

This commit is contained in:
Tienson Qin
2023-04-12 17:19:06 +08:00
committed by GitHub
parent 0edb4f5f5a
commit 339fb7ceb2
2 changed files with 6 additions and 5 deletions

View File

@@ -631,9 +631,9 @@ Similar to re-frame subscriptions"
(distinct)))
(defn sub-block-selected?
[block-uuid]
[container-id block-uuid]
(rum/react
(rum/derived-atom [state] [::select-block block-uuid]
(rum/derived-atom [state] [::select-block container-id block-uuid]
(fn [state]
(contains? (set (get-selected-block-ids (:selection/blocks state)))
block-uuid)))))