Skip to content

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

Lint

Joshen Lim528517e93d97
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.tsx
index 768061dd739..7e815011d86 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/ColumnEditor/ColumnEditor.tsx
@@ -55,7 +55,6 @@ const ColumnEditor: FC<Props> = ({
updateEditorDirty = () => {},
}) => {
const isNewRecord = isUndefined(column)
- const hasPrimaryKey = (selectedTable?.primary_keys ?? []).length > 0
const originalForeignKey = column ? getColumnForeignKey(column, selectedTable) : undefined
const [errors, setErrors] = useState<Dictionary<any>>({})
@@ -128,7 +127,6 @@ const ColumnEditor: FC<Props> = ({
? { ...columnFields.foreignKey, source_column_name: columnFields.name }
: undefined
const configuration = { columnId: column?.id }
- console.log('onSaveChanges', payload)
saveChanges(payload, foreignKey, isNewRecord, configuration, resolve)
} else {
resolve()