Skip to content

Commit

Permalink
fix(ui): πŸ› show games even if there are errors (#502)
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 authored Aug 17, 2024
2 parents 9ca30b5 + f51b39e commit 694ff75
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 694ff75

Please sign in to comment.