Skip to content

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

fix: no migration history handler (#3585)

boojackbde40600abdd
diff --git a/frontend/src/components/SyncDatabaseSchemaPrepForm.vue b/frontend/src/components/SyncDatabaseSchemaPrepForm.vue
index abdebd66bf..794b1337f8 100644
--- a/frontend/src/components/SyncDatabaseSchemaPrepForm.vue
+++ b/frontend/src/components/SyncDatabaseSchemaPrepForm.vue
@@ -388,7 +388,7 @@ const databaseMigrationHistoryList = (databaseId: DatabaseId) => {
);
if (!hasSyncSchemaFeature.value) {
- return [head(list)];
+ return [list.length > 0 ? head(list) : []];
}
return list;
};