Browse Source

Make awaiting the delete promise explicit.

Afshin T. Darian 5 years ago
parent
commit
a62b0ac488
1 changed files with 1 additions and 1 deletions
  1. 1 1
      packages/filebrowser/src/listing.ts

+ 1 - 1
packages/filebrowser/src/listing.ts

@@ -384,7 +384,7 @@ export class DirListing extends Widget {
     });
 
     if (!this.isDisposed && result.button.accept) {
-      return this._delete(items.map(item => item.path));
+      await this._delete(items.map(item => item.path));
     }
   }