Explorar el Código

Make awaiting the delete promise explicit.

Afshin T. Darian hace 5 años
padre
commit
a62b0ac488
Se han modificado 1 ficheros con 1 adiciones y 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));
     }
   }