Browse Source

Add additional validation for data

master
jeffvli 3 years ago
parent
commit
803861cc48
  1. 3
      src/components/library/GenreList.tsx

3
src/components/library/GenreList.tsx

@ -58,14 +58,13 @@ const GenreList = () => {
searchQuery={searchQuery}
handleSearch={(e: any) => setSearchQuery(e)}
clearSearchQuery={() => setSearchQuery('')}
viewTypeSetting="genre"
showSearchBar
/>
}
>
{isLoading && <PageLoader />}
{isError && <div>Error: {error}</div>}
{!isLoading && !isError && (
{!isLoading && genres && !isError && (
<ListViewType
data={searchQuery !== '' ? filteredData : genres}
tableColumns={settings.getSync('genreListColumns')}

Loading…
Cancel
Save