Skip to content

Commit

Permalink
fix(ui): πŸ› show games even if there are errors
Browse files Browse the repository at this point in the history
Show games on the library page if game data exists. Log errors to
console.

βœ… Closes: #501
  • Loading branch information
andrew-codes committed Aug 17, 2024
1 parent 9ca30b5 commit f51b39e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/playnite-web/src/routes/browse.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(() => {
Expand Down

0 comments on commit f51b39e

Please sign in to comment.