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( public async uploadNewFile(
fileOrHandle: File | FileSystemFileHandle, fileOrHandle: File | FileSystemFileHandle,
{ options: {
showToast,
note,
}: {
showToast?: boolean showToast?: boolean
note?: SNNote note?: SNNote
} = {
showToast: true,
}, },
): Promise<FileItem | undefined> { ): Promise<FileItem | undefined> {
const { showToast = true, note } = options
let toastId: string | undefined let toastId: string | undefined
try { try {