fix(PageComponent/index.tsx): fix incorrect parameter passed to uploadFlow function
This commit is contained in:
parent
ea2b0dcc38
commit
1920c140a8
1 changed files with 1 additions and 1 deletions
|
|
@ -325,7 +325,7 @@ export default function Page({
|
|||
} else if (event.dataTransfer.types.some((types) => types === "Files")) {
|
||||
takeSnapshot();
|
||||
if (event.dataTransfer.files.item(0)!.type === "application/json") {
|
||||
uploadFlow(true, event.dataTransfer.files.item(0)!);
|
||||
uploadFlow(false, event.dataTransfer.files.item(0)!);
|
||||
} else {
|
||||
setErrorData({
|
||||
title: "Invalid file type",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue