Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix(TypeError): Spread syntax requires ...iterable not be null or undefined

Ramesh Mane164d35de05dc
diff --git a/packages/nc-gui/components/cell/attachment/UploadProviders/Local.vue b/packages/nc-gui/components/cell/attachment/UploadProviders/Local.vue
index b77b9e08af..2e55c4bb70 100644
--- a/packages/nc-gui/components/cell/attachment/UploadProviders/Local.vue
+++ b/packages/nc-gui/components/cell/attachment/UploadProviders/Local.vue
@@ -26,6 +26,8 @@ watch(files, (newFiles) => {
})
const onDrop = (files: File[], event: DragEvent) => {
+ if (!files || !ncIsArray(files)) return
+
tempFiles.value.push(...files)
event.preventDefault()
event.stopPropagation()