mirror of
https://github.com/penpot/penpot.git
synced 2025-06-06 13:11:39 +02:00
🐛 Fix click on the project name goes to blank dashboard from workspace (#5668)
This commit is contained in:
parent
74bdd72d2f
commit
ea6c679b21
2 changed files with 20 additions and 1 deletions
|
@ -32,6 +32,7 @@
|
|||
(let [profile (mf/deref refs/profile)
|
||||
file-id (:id file)
|
||||
file-name (:name file)
|
||||
project-id (:id project)
|
||||
team-id (:team-id project)
|
||||
shared? (:is-shared file)
|
||||
|
||||
|
@ -78,7 +79,8 @@
|
|||
|
||||
nav-to-project
|
||||
(mf/use-fn
|
||||
#(st/emit! (dcm/go-to-dashboard-files ::rt/new-window true)))]
|
||||
(mf/deps project-id)
|
||||
#(st/emit! (dcm/go-to-dashboard-files ::rt/new-window true :project-id project-id)))]
|
||||
|
||||
(mf/with-effect [editing?]
|
||||
(when ^boolean editing?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue