From 04d4abc76608a4bc66c913a7e8831868886c0f2a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20Valderrama?= Date: Tue, 26 May 2026 12:00:00 +0200 Subject: [PATCH] :paperclip: Code review --- frontend/src/app/main/data/nitrate.cljs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/frontend/src/app/main/data/nitrate.cljs b/frontend/src/app/main/data/nitrate.cljs index 09e5d7d51d..439c2ded07 100644 --- a/frontend/src/app/main/data/nitrate.cljs +++ b/frontend/src/app/main/data/nitrate.cljs @@ -215,7 +215,8 @@ (->> (rp/cmd! ::remove-team-from-org {:team-id team-id :organization-id organization-id :organization-name organization-name}) (rx/mapcat (fn [_] - (rx/of (modal/hide)))) + (rx/of (dt/fetch-teams) + (modal/hide)))) (rx/catch (fn [cause] (let [code (-> cause ex-data :code)] @@ -245,13 +246,13 @@ (modal/show {:type :confirm :title (tr "modals.remove-team-org.title") - :message (tr "modals.remove-team-org.text" (:name team) (dm/get-in team [:organization :name])) + :message (tr "modals.remove-team-org.text" (:name team) (:name source-org)) :hint (tr "modals.remove-team-org.info") :hint-level :default :accept-label (tr "modals.remove-team-org.accept") :on-accept #(st/emit! (remove-team-from-org {:team-id team-id - :organization-id (dm/get-in team [:organization :id]) - :organization-name (dm/get-in team [:organization :name])})) + :organization-id (:id source-org) + :organization-name (:name source-org)})) :accept-style :danger}) (modal/show :no-permission-modal {:type :no-orgs-change}))))))))))