From 4f3cb6e457c3cc434516eb1a0b201679cd25028c Mon Sep 17 00:00:00 2001 From: Bryan Frimin Date: Sun, 4 May 2025 11:27:31 -0700 Subject: [PATCH] Fix missing query variable Signed-off-by: Bryan Frimin --- CHANGELOG.md | 1 + .../src/pages/organizations/policies/ShowPolicyView.tsx | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 36c7cd821..8c7c1c93d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,6 +9,7 @@ All notable changes to this project will be documented in this file. ### Added - Add ISO 27001 document header +- Add policy downlaod ### Changed diff --git a/apps/console/src/pages/organizations/policies/ShowPolicyView.tsx b/apps/console/src/pages/organizations/policies/ShowPolicyView.tsx index ade1ca54b..cd7b794f0 100644 --- a/apps/console/src/pages/organizations/policies/ShowPolicyView.tsx +++ b/apps/console/src/pages/organizations/policies/ShowPolicyView.tsx @@ -214,7 +214,7 @@ function ShowPolicyContent({ }); // Reload the query to refresh the data - loadQuery({ policyId: policy.id }); + loadQuery({ policyId: policy.id, organizationId: organizationId! }); }, onError: (error) => { toast({ @@ -242,7 +242,7 @@ function ShowPolicyContent({ setIsVersionHistoryOpen(false); // Reload the query to refresh the data if (policy.id) { - loadQuery({ policyId: policy.id }); + loadQuery({ policyId: policy.id, organizationId: organizationId! }); } }, [policy.id, loadQuery, toast],