From 73d11b001ef0591cd266ddf97b7749eacd7039aa Mon Sep 17 00:00:00 2001 From: Thomas Kaul <4159106+dtslvr@users.noreply.github.com> Date: Sun, 20 Sep 2026 09:46:56 +0200 Subject: [PATCH] Fix sorting of watchlist items without a name --- apps/api/src/app/endpoints/watchlist/watchlist.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/api/src/app/endpoints/watchlist/watchlist.service.ts b/apps/api/src/app/endpoints/watchlist/watchlist.service.ts index ccdd04e27c..c69a31df82 100644 --- a/apps/api/src/app/endpoints/watchlist/watchlist.service.ts +++ b/apps/api/src/app/endpoints/watchlist/watchlist.service.ts @@ -151,7 +151,7 @@ export class WatchlistService { ); return watchlist.sort((a, b) => { - return a.name.localeCompare(b.name); + return (a.name ?? '').localeCompare(b.name ?? ''); }); }