Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

fix: order of using hook (#16980)

boojackec134cb8ea77
diff --git a/frontend/src/components/Plan/components/IssueReviewView/ActivitySection/ActivitySection.vue b/frontend/src/components/Plan/components/IssueReviewView/ActivitySection/ActivitySection.vue
index e0632c6c40..056ef10511 100644
--- a/frontend/src/components/Plan/components/IssueReviewView/ActivitySection/ActivitySection.vue
+++ b/frontend/src/components/Plan/components/IssueReviewView/ActivitySection/ActivitySection.vue
@@ -37,6 +37,7 @@ import { usePlanContext, useIssueReviewContext } from "../../../logic";
const { rollout, issue } = usePlanContext();
const { project } = useCurrentProjectV1();
+const reviewContext = useIssueReviewContext();
// Show alert when issue is approved and rollout hasn't started yet
const showApprovedAlert = computed(() => {
@@ -46,9 +47,7 @@ const showApprovedAlert = computed(() => {
if (issue.value.status !== IssueStatus.OPEN) return false;
// Check if issue is approved
- const reviewContext = useIssueReviewContext();
const isApproved = reviewContext.done.value;
-
if (!isApproved) return false;
// Check if rollout has started