fix: hide libraries from home sections as well

This commit is contained in:
Fredrik Burmester
2025-01-05 16:22:32 +01:00
parent 55d61172f4
commit 41db34ed8e
2 changed files with 8 additions and 2 deletions

View File

@@ -116,7 +116,7 @@ export default function index() {
}, []);
const {
data: userViews,
data,
isError: e1,
isLoading: l1,
} = useQuery({
@@ -136,6 +136,11 @@ export default function index() {
staleTime: 60 * 1000,
});
const userViews = useMemo(
() => data?.filter((l) => !settings?.hiddenLibraries?.includes(l.Id!)),
[data, settings?.hiddenLibraries]
);
const {
data: mediaListCollections,
isError: e2,

View File

@@ -53,7 +53,8 @@ export default function page() {
))}
</ListGroup>
<Text className="px-4 text-xs text-neutral-500 mt-1">
Select the libraries you want to hide from the Library tab.
Select the libraries you want to hide from the Library tab and home page
sections.
</Text>
</View>
);