fix: do not show community view until it's loaded (#18570)

This commit is contained in:
yqrashawn 2024-01-19 16:36:14 +08:00 committed by GitHub
parent 7cc570b6d0
commit 61c0650cec
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 4 additions and 3 deletions

View File

@ -370,9 +370,10 @@
(let [{:keys [id joined] (let [{:keys [id joined]
:as community} (rf/sub [:communities/community id]) :as community} (rf/sub [:communities/community id])
pending? (rf/sub [:communities/my-pending-request-to-join id])] pending? (rf/sub [:communities/my-pending-request-to-join id])]
(when joined (when community
(rf/dispatch [:activity-center.notifications/dismiss-community-overview id])) (when joined
[community-scroll-page community pending?])) (rf/dispatch [:activity-center.notifications/dismiss-community-overview id]))
[community-scroll-page community pending?])))
(defn overview (defn overview
[id] [id]