Skip to content

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

【CSV file import】Ensure onChange fires when the same file is uploaded twice (#38440)

Taishie5a26a92022e
diff --git a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.tsx b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.tsx
index c9e2c748059..9eee2b10105 100644
--- a/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.tsx
+++ b/apps/studio/components/interfaces/TableGridEditor/SidePanelEditor/SpreadsheetImport/SpreadsheetImport.tsx
@@ -109,9 +109,8 @@ const SpreadsheetImport = ({
const [file] = event.target.files || event.dataTransfer.files
if (file && !flagInvalidFileImport(file)) {
await processFile(file)
- } else {
- event.target.value = ''
}
+ event.target.value = ''
},
[processFile]
)