0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-25 07:58:49 -05:00

🐛 Fix authentication required on dashboard

This commit is contained in:
Alejandro Alonso 2023-09-14 07:13:37 +02:00
parent 3fea366a04
commit 33c82e2abe

View file

@ -154,9 +154,7 @@
(hooks/use-shortcuts ::dashboard sc/shortcuts)
(mf/with-effect [profile team-id]
(when profile
;; When doing logout we must avoid reinitializing the dashboard
(st/emit! (dd/initialize {:id team-id})))
(st/emit! (dd/initialize {:id team-id}))
(fn []
(dd/finalize {:id team-id})))