mirror of
https://github.com/streamyfin/streamyfin.git
synced 2026-04-21 16:24:41 +01:00
feat: hide sections when empty by default
This commit is contained in:
@@ -42,7 +42,8 @@ export const ScrollingCollectionList: React.FC<Props> = ({
|
||||
|
||||
const { t } = useTranslation();
|
||||
|
||||
if (hideIfEmpty === true && data?.length === 0) return null;
|
||||
// hideIfEmpty is deprecated, we always hide when there is no data
|
||||
if (hideIfEmpty === true || data?.length === 0) return null;
|
||||
if (disabled || !title) return null;
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user