fix: Fixed issue where file upload progress was not visible

This commit is contained in:
Aman Harwara
2023-08-28 15:46:13 +05:30
parent 208070be1b
commit 2484d78588

View File

@@ -390,16 +390,13 @@ export class FilesController extends AbstractViewController<FilesControllerEvent
public async uploadNewFile(
fileOrHandle: File | FileSystemFileHandle,
{
showToast,
note,
}: {
options: {
showToast?: boolean
note?: SNNote
} = {
showToast: true,
},
): Promise<FileItem | undefined> {
const { showToast = true, note } = options
let toastId: string | undefined
try {