mirror of
https://github.com/streamyfin/streamyfin.git
synced 2025-08-20 18:37:18 +02:00
fix: early return causing crash
This commit is contained in:
@@ -40,11 +40,10 @@ export const ScrollingCollectionList: React.FC<Props> = ({
|
|||||||
refetchOnReconnect: true,
|
refetchOnReconnect: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
if (disabled || !title) return null;
|
const { t } = useTranslation();
|
||||||
|
|
||||||
if (hideIfEmpty === true && data?.length === 0) return null;
|
if (hideIfEmpty === true && data?.length === 0) return null;
|
||||||
|
if (disabled || !title) return null;
|
||||||
const { t } = useTranslation();
|
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View {...props}>
|
<View {...props}>
|
||||||
|
|||||||
Reference in New Issue
Block a user