Skip to content

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

fix: get migration history id from data (#4249)

Liu Jiefc128c7395c
diff --git a/frontend/src/store/modules/instance.ts b/frontend/src/store/modules/instance.ts
index b6a223bf83..5c4d7bdbfe 100644
--- a/frontend/src/store/modules/instance.ts
+++ b/frontend/src/store/modules/instance.ts
@@ -102,7 +102,11 @@ function convertMigrationHistory(history: ResourceObject): MigrationHistory {
? JSON.parse((history.attributes.payload as string) || "{}")
: {};
return {
- ...(history.attributes as Omit<MigrationHistory, "issueId" | "payload">),
+ ...(history.attributes as Omit<
+ MigrationHistory,
+ "id" | "issueId" | "payload"
+ >),
+ id: history.id,
// This issueId is special since it's stored in the migration history table
// and may refer to the issueId from the external system in the future.
issueId: parseInt(history.attributes.issueId as string),