The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Remove excessive error checking in saveTable method
Joshen Lim14b272550da8
diff --git a/studio/stores/pgmeta/MetaStore.ts b/studio/stores/pgmeta/MetaStore.tsindex e842eda5d2e..3d8a1e30027 100644--- a/studio/stores/pgmeta/MetaStore.ts+++ b/studio/stores/pgmeta/MetaStore.ts@@ -527,8 +527,7 @@ export default class MetaStore implements IMetaStore {...column,isPrimaryKey: false,})- const addedColumn: any = await this.createColumn(columnPayload, column.foreignKey)- if (addedColumn.error) throw addedColumn.error+ await this.createColumn(columnPayload, column.foreignKey)} else {const originalColumn = find(originalColumns, { id: column.id })if (originalColumn) {@@ -545,13 +544,7 @@ export default class MetaStore implements IMetaStore {category: 'loading',message: `Updating column ${column.name} from ${updatedTable.name}`,})- const updatedColumn: any = await this.updateColumn(- column.id,- columnPayload,- updatedTable,- column.foreignKey- )- if (updatedColumn.error) throw updatedColumn.error+ await this.updateColumn(column.id, columnPayload, updatedTable, column.foreignKey)}}}