mirror of
https://github.com/penpot/penpot.git
synced 2026-04-25 11:18:36 +00:00
🐛 Fix Internal Error when adding a new text layer and trying to go back to Dashboard without saving
This commit is contained in:
parent
bc16b8ddc3
commit
24c8fc484f
@ -78,13 +78,15 @@
|
|||||||
(fn []
|
(fn []
|
||||||
(close-modals)
|
(close-modals)
|
||||||
;; FIXME: move set-mode to uri?
|
;; FIXME: move set-mode to uri?
|
||||||
(st/emit! (dw/set-options-mode :design)
|
(st/emit! :interrupt
|
||||||
|
(dw/set-options-mode :design)
|
||||||
(dcm/go-to-dashboard-recent))))
|
(dcm/go-to-dashboard-recent))))
|
||||||
|
|
||||||
nav-to-project
|
nav-to-project
|
||||||
(mf/use-fn
|
(mf/use-fn
|
||||||
(mf/deps project-id)
|
(mf/deps project-id)
|
||||||
#(st/emit! (dcm/go-to-dashboard-files ::rt/new-window true :project-id project-id)))]
|
#(st/emit! :interrupt
|
||||||
|
(dcm/go-to-dashboard-files ::rt/new-window true :project-id project-id)))]
|
||||||
|
|
||||||
(mf/with-effect [editing?]
|
(mf/with-effect [editing?]
|
||||||
(when ^boolean editing?
|
(when ^boolean editing?
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user