Explorar o código

Make awaiting the delete promise explicit.

Afshin T. Darian %!s(int64=5) %!d(string=hai) anos
pai
achega
a62b0ac488
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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));
     }
   }