Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

fix tests

Alaister Young3b93964cd13c
diff --git a/studio/components/interfaces/Database/Tables/TableList.tsx b/studio/components/interfaces/Database/Tables/TableList.tsx
index 5a3ed7209f7..a63291cbdd7 100644
--- a/studio/components/interfaces/Database/Tables/TableList.tsx
+++ b/studio/components/interfaces/Database/Tables/TableList.tsx
@@ -50,7 +50,7 @@ const TableList = ({
projectRef: project?.ref,
connectionString: project?.connectionString,
})
- const [protectedSchemas, openSchemas] = partition(schemas, (schema) =>
+ const [protectedSchemas, openSchemas] = partition(schemas ?? [], (schema) =>
EXCLUDED_SCHEMAS.includes(schema?.name ?? '')
)
@@ -85,7 +85,6 @@ const TableList = ({
<Listbox.Option disabled key="normal-schemas" value="normal-schemas" label="Schemas">
<p className="text-sm">Schemas</p>
</Listbox.Option>
- {/* @ts-ignore */}
{openSchemas.map((schema) => (
<Listbox.Option
key={schema.id}
diff --git a/studio/stores/pgmeta/MetaStore.ts b/studio/stores/pgmeta/MetaStore.ts
index b3afae54e0d..905c3f16f2c 100644
--- a/studio/stores/pgmeta/MetaStore.ts
+++ b/studio/stores/pgmeta/MetaStore.ts
@@ -1,5 +1,5 @@
import Papa from 'papaparse'
-import { makeObservable, observable } from 'mobx'
+import { makeObservable } from 'mobx'
import { find, isUndefined, isEqual, isEmpty, chunk } from 'lodash'
import { Query } from 'components/grid/query/Query'
@@ -8,7 +8,6 @@ import type {
PostgresTable,
PostgresRelationship,
PostgresPrimaryKey,
- PostgresSchema,
} from '@supabase/postgres-meta'
import { IS_PLATFORM, API_URL } from 'lib/constants'
@@ -214,7 +213,7 @@ export default class MetaStore implements IMetaStore {
)
this.types = new TypesStore(this.rootStore, `${this.baseUrl}/types`, this.headers)
- makeObservable(this)
+ makeObservable(this, {})
}
/**