Add stricter loading check for cells

This commit is contained in:
jeffvli 2022-12-24 18:12:49 -08:00
parent ed12d59564
commit d011c29ce8
4 changed files with 4 additions and 4 deletions

View File

@ -9,7 +9,7 @@ import { AppRoute } from '/@/renderer/router/routes';
import { Skeleton } from '/@/renderer/components/skeleton';
export const AlbumArtistCell = ({ value, data }: ICellRendererParams) => {
if (!value) {
if (value === undefined) {
return (
<CellContainer position="left">
<Skeleton

View File

@ -9,7 +9,7 @@ import { AppRoute } from '/@/renderer/router/routes';
import { Skeleton } from '/@/renderer/components/skeleton';
export const ArtistCell = ({ value, data }: ICellRendererParams) => {
if (!value) {
if (value === undefined) {
return (
<CellContainer position="left">
<Skeleton

View File

@ -48,7 +48,7 @@ export const CombinedTitleCell = ({ value, rowIndex, node }: ICellRendererParams
return value?.type === ServerType.JELLYFIN ? value.artists : value.albumArtists;
}, [value]);
if (!value) {
if (value === undefined) {
return (
<CellContainer height={node.rowHeight || 40}>
<Skeleton>

View File

@ -33,7 +33,7 @@ export const GenericCell = (
) => {
const displayedValue = valueFormatted || value;
if (!value) {
if (value === undefined) {
return (
<CellContainer position={position || 'left'}>
<Skeleton