0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-03-15 17:21:17 -05:00

Merge pull request #3630 from penpot/superalex-fix-authentication-required-on-dashboard

🐛 Fix authentication required on dashboard
This commit is contained in:
Andrey Antukh 2023-09-14 10:20:00 +02:00 committed by GitHub
commit 813c9de636
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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})))