mirror of
https://github.com/penpot/penpot.git
synced 2026-07-30 01:46:14 +00:00
🐛 Fix authentication required on dashboard
This commit is contained in:
parent
3fea366a04
commit
33c82e2abe
@ -154,9 +154,7 @@
|
|||||||
(hooks/use-shortcuts ::dashboard sc/shortcuts)
|
(hooks/use-shortcuts ::dashboard sc/shortcuts)
|
||||||
|
|
||||||
(mf/with-effect [profile team-id]
|
(mf/with-effect [profile team-id]
|
||||||
(when profile
|
(st/emit! (dd/initialize {:id team-id}))
|
||||||
;; When doing logout we must avoid reinitializing the dashboard
|
|
||||||
(st/emit! (dd/initialize {:id team-id})))
|
|
||||||
(fn []
|
(fn []
|
||||||
(dd/finalize {:id team-id})))
|
(dd/finalize {:id team-id})))
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user