Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
fix: type error for react-dropzone
Marc Seitz35b43466e257
diff --git a/components/upload-zone.tsx b/components/upload-zone.tsxindex 8b213ffe..5bbf5ea7 100644--- a/components/upload-zone.tsx+++ b/components/upload-zone.tsx@@ -416,7 +416,7 @@ export default function UploadZone({const getFilesFromEvent = useCallback(async (event: DropEvent) => {// This callback also run when event.type =`dragenter`. We only need to compute files when the event.type is `drop`.- if (event.type !== "drop" && event.type !== "change") {+ if ("type" in event && event.type !== "drop" && event.type !== "change") {return [];}@@ -599,6 +599,7 @@ export default function UploadZone({filesToBePassedToOnDrop.push(...fileResult),);} else if (+ "target" in event &&event.target &&event.target instanceof HTMLInputElement &&event.target.files