mirror of https://github.com/penpot/penpot.git
🐛 Fix problem with flow not being deleted (#7371)
This commit is contained in:
parent
441dc33e38
commit
b6b2d28464
|
|
@ -185,15 +185,17 @@
|
|||
interactions)))
|
||||
(vals objects))
|
||||
|
||||
id-to-delete? (set ids-to-delete)
|
||||
changes
|
||||
(reduce (fn [changes {:keys [id] :as flow}]
|
||||
(if (contains? ids-to-delete (:starting-frame flow))
|
||||
(-> changes
|
||||
(pcb/with-page page)
|
||||
(pcb/set-flow id nil))
|
||||
changes))
|
||||
changes
|
||||
(:flows page))
|
||||
(->> (:flows page)
|
||||
(reduce
|
||||
(fn [changes [id flow]]
|
||||
(if (id-to-delete? (:starting-frame flow))
|
||||
(-> changes
|
||||
(pcb/with-page page)
|
||||
(pcb/set-flow id nil))
|
||||
changes))
|
||||
changes))
|
||||
|
||||
|
||||
all-parents
|
||||
|
|
|
|||
Loading…
Reference in New Issue