From 1d6aa7003354e95c2fd7508b58982fde11317ed6 Mon Sep 17 00:00:00 2001 From: Deluan Date: Thu, 6 May 2021 09:49:25 -0400 Subject: [PATCH] Fix possible TypeError --- ui/src/album/AlbumGridView.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/album/AlbumGridView.js b/ui/src/album/AlbumGridView.js index 6b6e1a787..05a785017 100644 --- a/ui/src/album/AlbumGridView.js +++ b/ui/src/album/AlbumGridView.js @@ -186,7 +186,8 @@ const LoadedAlbumGrid = ({ ids, data, basePath, width }) => { } const AlbumGridView = ({ albumListType, loaded, loading, ...props }) => { - const hide = (loading && albumListType === 'random') || !props.data + const hide = + (loading && albumListType === 'random') || !props.data || !props.ids return hide ? : }