From 75f57a4e57fb13cc62e87428e8302b453ea6b44b Mon Sep 17 00:00:00 2001 From: Elias Schneider Date: Mon, 5 Dec 2022 22:09:41 +0100 Subject: [PATCH] fix: dropzone rejection on chrome --- frontend/package-lock.json | 14 +++++++------- frontend/package.json | 14 +++++++------- frontend/src/components/upload/Dropzone.tsx | 6 ------ 3 files changed, 14 insertions(+), 20 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index e11cac4..1fb99c6 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -10,13 +10,13 @@ "dependencies": { "@emotion/react": "^11.10.5", "@emotion/server": "^11.10.0", - "@mantine/core": "^5.9.1", - "@mantine/dropzone": "^5.9.1", - "@mantine/form": "^5.9.1", - "@mantine/hooks": "^5.9.1", - "@mantine/modals": "^5.9.1", - "@mantine/next": "^5.9.1", - "@mantine/notifications": "^5.9.1", + "@mantine/core": "^5.9.2", + "@mantine/dropzone": "^5.9.2", + "@mantine/form": "^5.9.2", + "@mantine/hooks": "^5.9.2", + "@mantine/modals": "^5.9.2", + "@mantine/next": "^5.9.2", + "@mantine/notifications": "^5.9.2", "axios": "^1.2.0", "cookies-next": "^2.1.1", "file-saver": "^2.0.5", diff --git a/frontend/package.json b/frontend/package.json index 12f1575..d5259f4 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -11,13 +11,13 @@ "dependencies": { "@emotion/react": "^11.10.5", "@emotion/server": "^11.10.0", - "@mantine/core": "^5.9.1", - "@mantine/dropzone": "^5.9.1", - "@mantine/form": "^5.9.1", - "@mantine/hooks": "^5.9.1", - "@mantine/modals": "^5.9.1", - "@mantine/next": "^5.9.1", - "@mantine/notifications": "^5.9.1", + "@mantine/core": "^5.9.2", + "@mantine/dropzone": "^5.9.2", + "@mantine/form": "^5.9.2", + "@mantine/hooks": "^5.9.2", + "@mantine/modals": "^5.9.2", + "@mantine/next": "^5.9.2", + "@mantine/notifications": "^5.9.2", "axios": "^1.2.0", "cookies-next": "^2.1.1", "file-saver": "^2.0.5", diff --git a/frontend/src/components/upload/Dropzone.tsx b/frontend/src/components/upload/Dropzone.tsx index e946f8f..7b2c720 100644 --- a/frontend/src/components/upload/Dropzone.tsx +++ b/frontend/src/components/upload/Dropzone.tsx @@ -45,12 +45,6 @@ const Dropzone = ({ return (
{ - return Promise.resolve([ - ...((e.target as EventTarget & HTMLInputElement)?.files as any), - ]); - }} maxSize={parseInt(config.get("MAX_FILE_SIZE"))} onReject={(e) => { toast.error(e[0].errors[0].message);