The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.
TypeScript aialternativeauthdatabasedenoembeddingsexamplefirebasenextjsoauth2pgvectorpostgispostgrespostgresqlpostgrestrealtimesupabasevectorswebsockets
Fix wrapper table editor not rendering dynamic columns
Joshen Lim77fc6f0e1e03
diff --git a/studio/components/interfaces/Database/Wrappers/EditWrapper.tsx b/studio/components/interfaces/Database/Wrappers/EditWrapper.tsxindex 96e01f6b12a..bb82a567cdf 100644--- a/studio/components/interfaces/Database/Wrappers/EditWrapper.tsx+++ b/studio/components/interfaces/Database/Wrappers/EditWrapper.tsx@@ -56,7 +56,6 @@ const EditWrapper = () => {const foundWrapper = wrappers.find((w) => Number(w.id) === Number(id))// this call to useImmutableValue should be removed if the redirect after update is also removedconst wrapper = useImmutableValue(foundWrapper)-const wrapperMeta = WRAPPERS.find((w) => w.handlerName === wrapper?.handler)const { mutateAsync: updateFDW, isLoading: isSaving } = useFDWUpdateMutation()diff --git a/studio/components/interfaces/Database/Wrappers/WrapperDynamicColumns.tsx b/studio/components/interfaces/Database/Wrappers/WrapperDynamicColumns.tsxindex eede78c00e2..b59ecbc8f0f 100644--- a/studio/components/interfaces/Database/Wrappers/WrapperDynamicColumns.tsx+++ b/studio/components/interfaces/Database/Wrappers/WrapperDynamicColumns.tsx@@ -1,7 +1,7 @@import ColumnType from 'components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnType'import useLatest from 'hooks/misc/useLatest'import { useEffect, useReducer } from 'react'-import { Button, IconXCircle, Input } from 'ui'+import { Button, IconX, IconXCircle, Input } from 'ui'export type SimpleColumn = {id: number@@ -134,9 +134,9 @@ const WrapperDynamicColumns = ({<ButtononClick={() => onRemoveColumn(column.id)}- icon={<IconXCircle />}+ icon={<IconX size={14} strokeWidth={1.5} />}type="outline"- className="self-end -translate-y-2"+ className="self-end -translate-y-1 !px-2 !py-2"/></div>))}diff --git a/studio/components/interfaces/Database/Wrappers/WrapperTableEditor.tsx b/studio/components/interfaces/Database/Wrappers/WrapperTableEditor.tsxindex 087f8847395..baf8cc79e62 100644--- a/studio/components/interfaces/Database/Wrappers/WrapperTableEditor.tsx+++ b/studio/components/interfaces/Database/Wrappers/WrapperTableEditor.tsx@@ -289,6 +289,7 @@ const TableForm = ({})) : (<WrapperDynamicColumns+ initialColumns={values.columns}onChange={(columns) => {setFieldValue('columns', columns)}}diff --git a/studio/components/interfaces/Database/Wrappers/Wrappers.utils.ts b/studio/components/interfaces/Database/Wrappers/Wrappers.utils.tsindex 97545babb4f..5ef723b2bfd 100644--- a/studio/components/interfaces/Database/Wrappers/Wrappers.utils.ts+++ b/studio/components/interfaces/Database/Wrappers/Wrappers.utils.ts@@ -27,7 +27,7 @@ export const formatWrapperTables = (tables: any[]) => {return {index,- columns: table.columns.map((column: any) => column.name),+ columns: table.columns,is_new_schema: false,object: objectValue,schema: table.schema,