Skip to content

Commit

Permalink
fix(admin-ui): Correctly update product list after deletion
Browse files Browse the repository at this point in the history
Fixes #453
  • Loading branch information
michaelbromley committed Sep 8, 2020
1 parent 44a9ab9 commit 5587144
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
() => {
Expand Down

0 comments on commit 5587144

Please sign in to comment.