diff --git a/src/app/items/items.service.ts b/src/app/items/items.service.ts index f18e8a7..1cb6cb2 100644 --- a/src/app/items/items.service.ts +++ b/src/app/items/items.service.ts @@ -28,6 +28,8 @@ export class ItemService{ this.dataStore.items = ItemDataResponse.body!.items; this._itemsUpdated.next(Object.assign({},this.dataStore).items); } else { + this.dataStore.items = []; + this._itemsUpdated.next(Object.assign({},this.dataStore).items); console.log('No items found'); } });