Skip to content

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

Lint

Joshen Lime241dad2e0d5
diff --git a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/SpreadsheetImport/SpreadsheetImport.tsx b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/SpreadsheetImport/SpreadsheetImport.tsx
index 98f9d0a67e6..58dd022ffa2 100644
--- a/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/SpreadsheetImport/SpreadsheetImport.tsx
+++ b/studio/components/interfaces/TableGridEditor/SidePanelEditor/TableEditor/SpreadsheetImport/SpreadsheetImport.tsx
@@ -188,8 +188,8 @@ const SpreadsheetImport: FC<Props> = ({
const key = `import-error-${idx}`
const isExpanded = expandedErrors.includes(key)
return (
- <div className="space-y-2">
- <div key={key} className="flex items-center space-x-2">
+ <div key={key} className="space-y-2">
+ <div className="flex items-center space-x-2">
<IconChevronRight
className={`cursor-pointer transform ${isExpanded ? 'rotate-90' : ''}`}
size={14}
diff --git a/studio/stores/pgmeta/MetaStore.ts b/studio/stores/pgmeta/MetaStore.ts
index 5638d7ec146..9391fc9a52a 100644
--- a/studio/stores/pgmeta/MetaStore.ts
+++ b/studio/stores/pgmeta/MetaStore.ts
@@ -434,15 +434,16 @@ export default class MetaStore implements IMetaStore {
}
if (!isUndefined(error)) {
+ console.log(error)
this.rootStore.ui.setNotification({
- id: toastId,
category: 'error',
- message: `Table ${table.name} has been created but we ran into an error while inserting rows:
- ${error.message} - ${error.details}`,
+ message: 'Do check your spreadsheet if there are any discrepancies.',
})
this.rootStore.ui.setNotification({
category: 'error',
- message: 'Do check your spreadsheet if there are any discrepancies.',
+ message: `Table ${table.name} has been created but we ran into an error while inserting rows:
+ ${error.message}`,
+ error,
})
}
} else {