fix: Collections not loaded if sidebar item collapsed

closes #4073
This commit is contained in:
Tom Moor
2022-09-09 23:54:22 +01:00
parent 04aad08e78
commit 8a0c46adeb

View File

@@ -43,6 +43,10 @@ function Collections() {
}),
});
React.useEffect(() => {
collections.fetchPage({ limit: 100 });
}, [collections]);
return (
<Flex column>
<Header id="collections" title={t("Collections")}>
@@ -50,8 +54,6 @@ function Collections() {
<PaginatedList
aria-label={t("Collections")}
items={collections.orderedData}
fetch={collections.fetchPage}
options={{ limit: 100 }}
loading={<PlaceholderCollections />}
heading={
isDraggingAnyCollection ? (