mirror of
https://github.com/penpot/penpot.git
synced 2025-01-04 13:50:12 -05:00
🐛 Fix invitations and webhooks page shows no data
Regression of the routing/state refactor
This commit is contained in:
parent
ea43a999e9
commit
1b2a38351d
1 changed files with 2 additions and 9 deletions
|
@ -31,7 +31,6 @@
|
|||
[app.util.i18n :as i18n :refer [tr]]
|
||||
[beicon.v2.core :as rx]
|
||||
[cuerdas.core :as str]
|
||||
[okulary.core :as l]
|
||||
[rumext.v2 :as mf]))
|
||||
|
||||
(def ^:private arrow-icon
|
||||
|
@ -743,15 +742,12 @@
|
|||
[:> i18n/tr-html* {:content (tr "labels.no-invitations-hint")
|
||||
:tag-name "span"}])])
|
||||
|
||||
(def ^:private ref:invitations
|
||||
(l/derived :invitations st/state))
|
||||
|
||||
(mf/defc invitation-section*
|
||||
{::mf/props :obj
|
||||
::mf/private true}
|
||||
[{:keys [team]}]
|
||||
(let [permissions (get team :permissions)
|
||||
invitations (mf/deref ref:invitations)
|
||||
invitations (get team :invitations)
|
||||
|
||||
team-id (get team :id)
|
||||
|
||||
|
@ -1037,13 +1033,10 @@
|
|||
:key (dm/str (:id webhook))
|
||||
:permissions permissions}])])
|
||||
|
||||
(def ^:private ref:webhooks
|
||||
(l/derived :webhooks st/state))
|
||||
|
||||
(mf/defc webhooks-page*
|
||||
{::mf/props :obj}
|
||||
[{:keys [team]}]
|
||||
(let [webhooks (mf/deref ref:webhooks)]
|
||||
(let [webhooks (:webhooks team)]
|
||||
|
||||
(mf/with-effect [team]
|
||||
(dom/set-html-title
|
||||
|
|
Loading…
Reference in a new issue