feat: hide sections when empty by default

This commit is contained in:
sarendsen
2025-01-24 08:55:02 +01:00
parent 252fc4387b
commit dac471f0a6
3 changed files with 28 additions and 16 deletions

View File

@@ -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 (