0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-13 16:21:57 -05:00

🐛 Fix wrong undo handling on masking objects.

On undo a mask operation the created group does not
disappear; this commit fixes this.
This commit is contained in:
Andrey Antukh 2020-11-26 09:54:44 +01:00 committed by Hirunatan
parent 1e49ddab8b
commit 55d8afd985
2 changed files with 12 additions and 12 deletions

View file

@ -1429,7 +1429,7 @@
:page-id page-id
:shapes [(:id group)]}])
uchanges (conj rchanges
uchanges (conj uchanges
{:type :mod-obj
:page-id page-id
:id (:id group)

View file

@ -10,21 +10,21 @@
(ns app.main.ui.workspace.context-menu
"A workspace specific context menu (mouse right click)."
(:require
[beicon.core :as rx]
[okulary.core :as l]
[potok.core :as ptk]
[rumext.alpha :as mf]
[app.main.store :as st]
[app.main.refs :as refs]
[app.main.streams :as ms]
[app.main.ui.icons :as i]
[app.util.dom :as dom]
[app.util.i18n :refer [t] :as i18n]
[app.main.data.workspace :as dw]
[app.main.data.workspace.common :as dwc]
[app.main.data.workspace.libraries :as dwl]
[app.main.refs :as refs]
[app.main.store :as st]
[app.main.streams :as ms]
[app.main.ui.components.dropdown :refer [dropdown]]
[app.main.ui.hooks :refer [use-rxsub]]
[app.main.ui.components.dropdown :refer [dropdown]]))
[app.main.ui.icons :as i]
[app.util.dom :as dom]
[app.util.i18n :refer [t] :as i18n]
[beicon.core :as rx]
[okulary.core :as l]
[potok.core :as ptk]
[rumext.alpha :as mf]))
(def menu-ref
(l/derived :context-menu refs/workspace-local))