Skip to content

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

fix: don't go further when rejected (#6677)

Liu Ji23446dc63248
diff --git a/frontend/src/plugins/issue/logic/review/index.ts b/frontend/src/plugins/issue/logic/review/index.ts
index b4a995fe58..74a3f074c4 100644
--- a/frontend/src/plugins/issue/logic/review/index.ts
+++ b/frontend/src/plugins/issue/logic/review/index.ts
@@ -32,10 +32,17 @@ export const extractIssueReviewContext = (
if (!ready.value) return emptyFlow();
const { approvalTemplates, approvers } = review.value;
if (approvalTemplates.length === 0) return emptyFlow();
+
+ const rejectedIndex = approvers.findIndex(
+ (ap) => ap.status === Review_Approver_Status.REJECTED
+ );
+ const currentStepIndex =
+ rejectedIndex >= 0 ? rejectedIndex : approvers.length;
+
return {
template: approvalTemplates[0],
approvers,
- currentStepIndex: approvers.length,
+ currentStepIndex,
};
});
const status = computed(() => {