fix: file deletion in navigation panel (#1173)

This commit is contained in:
Aman Harwara
2022-06-28 19:27:34 +05:30
committed by GitHub
parent a07340936f
commit 94be36ed9c

View File

@@ -406,7 +406,8 @@ export class FilesController extends AbstractViewController {
confirmButtonStyle: 'danger',
})
) {
await Promise.all(files.map((file) => this.application.mutator.deleteItem(file)))
await Promise.all(files.map((file) => this.application.files.deleteFile(file)))
void this.application.sync.sync()
}
}