Skip to content

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

fix: set migrationDetail.rollbackEnabled respectively (#4778)

Liu Ji706154793019
diff --git a/frontend/src/components/Issue/rollback/common.ts b/frontend/src/components/Issue/rollback/common.ts
index 946535f9f7..d327b60cae 100644
--- a/frontend/src/components/Issue/rollback/common.ts
+++ b/frontend/src/components/Issue/rollback/common.ts
@@ -146,10 +146,9 @@ export const useRollbackLogic = () => {
// In tenant mode, all tasks share a common MigrationDetail
const issueCreate = issue.value as IssueCreate;
const createContext = issueCreate.createContext as MigrationContext;
- const migrationDetail = head(createContext.detailList);
- if (migrationDetail) {
- migrationDetail.rollbackEnabled = on;
- }
+ createContext.detailList.forEach((detail) => {
+ detail.rollbackEnabled = on;
+ });
} else {
// In standard mode, every task has a independent TaskCreate with its
// own rollbackEnabled field.