Skip to content

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

fix: create sheet with unknown database_id (#1253)

STEVEN5e80ab0e5594
diff --git a/frontend/src/store/modules/sheet.ts b/frontend/src/store/modules/sheet.ts
index eaf4abdcee..82858f257f 100644
--- a/frontend/src/store/modules/sheet.ts
+++ b/frontend/src/store/modules/sheet.ts
@@ -164,6 +164,10 @@ export const useSheetStore = defineStore("sheet", {
});
},
async createSheet(sheetCreate: SheetCreate): Promise<Sheet> {
+ if (sheetCreate.databaseId === UNKNOWN_ID) {
+ sheetCreate.databaseId = undefined;
+ }
+
const resData = (
await axios.post(`/api/sheet`, {
data: {