Fix missing query variable

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2025-05-04 11:27:31 -07:00
parent 93112f89eb
commit 4f3cb6e457
2 changed files with 3 additions and 2 deletions

View File

@@ -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

View File

@@ -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],