mirror of
https://github.com/penpot/penpot.git
synced 2025-01-06 14:50:20 -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]]
|
[app.util.i18n :as i18n :refer [tr]]
|
||||||
[beicon.v2.core :as rx]
|
[beicon.v2.core :as rx]
|
||||||
[cuerdas.core :as str]
|
[cuerdas.core :as str]
|
||||||
[okulary.core :as l]
|
|
||||||
[rumext.v2 :as mf]))
|
[rumext.v2 :as mf]))
|
||||||
|
|
||||||
(def ^:private arrow-icon
|
(def ^:private arrow-icon
|
||||||
|
@ -743,15 +742,12 @@
|
||||||
[:> i18n/tr-html* {:content (tr "labels.no-invitations-hint")
|
[:> i18n/tr-html* {:content (tr "labels.no-invitations-hint")
|
||||||
:tag-name "span"}])])
|
:tag-name "span"}])])
|
||||||
|
|
||||||
(def ^:private ref:invitations
|
|
||||||
(l/derived :invitations st/state))
|
|
||||||
|
|
||||||
(mf/defc invitation-section*
|
(mf/defc invitation-section*
|
||||||
{::mf/props :obj
|
{::mf/props :obj
|
||||||
::mf/private true}
|
::mf/private true}
|
||||||
[{:keys [team]}]
|
[{:keys [team]}]
|
||||||
(let [permissions (get team :permissions)
|
(let [permissions (get team :permissions)
|
||||||
invitations (mf/deref ref:invitations)
|
invitations (get team :invitations)
|
||||||
|
|
||||||
team-id (get team :id)
|
team-id (get team :id)
|
||||||
|
|
||||||
|
@ -1037,13 +1033,10 @@
|
||||||
:key (dm/str (:id webhook))
|
:key (dm/str (:id webhook))
|
||||||
:permissions permissions}])])
|
:permissions permissions}])])
|
||||||
|
|
||||||
(def ^:private ref:webhooks
|
|
||||||
(l/derived :webhooks st/state))
|
|
||||||
|
|
||||||
(mf/defc webhooks-page*
|
(mf/defc webhooks-page*
|
||||||
{::mf/props :obj}
|
{::mf/props :obj}
|
||||||
[{:keys [team]}]
|
[{:keys [team]}]
|
||||||
(let [webhooks (mf/deref ref:webhooks)]
|
(let [webhooks (:webhooks team)]
|
||||||
|
|
||||||
(mf/with-effect [team]
|
(mf/with-effect [team]
|
||||||
(dom/set-html-title
|
(dom/set-html-title
|
||||||
|
|
Loading…
Reference in a new issue