Browse Source

fix: undo deleted group #9486

Konstantinos Kaloutas 2 years ago
parent
commit
b1cc247494
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/main/frontend/handler/whiteboard.cljs

+ 1 - 1
src/main/frontend/handler/whiteboard.cljs

@@ -159,7 +159,7 @@
                     (assoc metadata :whiteboard/op :group)
 
                     ;; ungroup
-                    (some #(= "group" (:type %)) (get-in metadata [:data :deleted-shapes]))
+                    (every? #(= "group" (:type %)) (get-in metadata [:data :deleted-shapes]))
                     (assoc metadata :whiteboard/op :un-group)
 
                     ;; arrow