Browse Source

fix(admin-ui): Correctly update product list after deletion

Fixes #453
Michael Bromley 5 years ago
parent
commit
5587144612

+ 3 - 0
packages/admin-ui/src/lib/catalog/src/components/product-list/product-list.component.ts

@@ -123,6 +123,9 @@ export class ProductListComponent
             })
             .pipe(
                 switchMap(response => (response ? this.dataService.product.deleteProduct(productId) : EMPTY)),
+                // Short delay to allow the product to be removed from the search index before
+                // refreshing.
+                delay(500),
             )
             .subscribe(
                 () => {