From 1b2a38351d45d0439f62990dbac0796b284b74c7 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Fri, 13 Dec 2024 09:13:28 +0100 Subject: [PATCH] :bug: Fix invitations and webhooks page shows no data Regression of the routing/state refactor --- frontend/src/app/main/ui/dashboard/team.cljs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/frontend/src/app/main/ui/dashboard/team.cljs b/frontend/src/app/main/ui/dashboard/team.cljs index ce2b9b791..bf82855e8 100644 --- a/frontend/src/app/main/ui/dashboard/team.cljs +++ b/frontend/src/app/main/ui/dashboard/team.cljs @@ -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