From 116fc67b048e87e0de98488d73efac36dd223c1a Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Mon, 28 Apr 2025 16:16:46 +0200 Subject: [PATCH] Clean up --- .../src/app/endpoints/watchlist/watchlist.service.ts | 2 +- .../create-watchlist-item-dialog.html | 10 ++++------ .../home-watchlist/home-watchlist.component.ts | 9 +++++---- 3 files changed, 10 insertions(+), 11 deletions(-) diff --git a/apps/api/src/app/endpoints/watchlist/watchlist.service.ts b/apps/api/src/app/endpoints/watchlist/watchlist.service.ts index c086c5f0e..fdb9dd97a 100644 --- a/apps/api/src/app/endpoints/watchlist/watchlist.service.ts +++ b/apps/api/src/app/endpoints/watchlist/watchlist.service.ts @@ -74,6 +74,6 @@ export class WatchlistService { where: { id: userId } }); - return user?.watchlist ?? []; + return user.watchlist ?? []; } } diff --git a/apps/client/src/app/components/home-watchlist/create-watchlist-item-dialog/create-watchlist-item-dialog.html b/apps/client/src/app/components/home-watchlist/create-watchlist-item-dialog/create-watchlist-item-dialog.html index 3773455b3..d878dc5ff 100644 --- a/apps/client/src/app/components/home-watchlist/create-watchlist-item-dialog/create-watchlist-item-dialog.html +++ b/apps/client/src/app/components/home-watchlist/create-watchlist-item-dialog/create-watchlist-item-dialog.html @@ -6,12 +6,10 @@ >