From f51b39e0a611c3ca86a059d8672dd3b1126cabf3 Mon Sep 17 00:00:00 2001 From: Andrew Smith Date: Sat, 17 Aug 2024 13:22:50 -0400 Subject: [PATCH] =?UTF-8?q?fix(ui):=20=F0=9F=90=9B=20show=20games=20even?= =?UTF-8?q?=20if=20there=20are=20errors?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Show games on the library page if game data exists. Log errors to console. ✅ Closes: #501 --- apps/playnite-web/src/routes/browse.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/playnite-web/src/routes/browse.tsx b/apps/playnite-web/src/routes/browse.tsx index 26060f3e7..794172c9f 100755 --- a/apps/playnite-web/src/routes/browse.tsx +++ b/apps/playnite-web/src/routes/browse.tsx @@ -80,7 +80,10 @@ function Browse() { refetch({ filter }) }, [filter]) - const games = !loading && !error ? data.games : [] + const games = !loading ? data.games : [] + if (error) { + console.error(error, data) + } const dispatch = useDispatch() useEffect(() => {