From 8a0c46adeb50c26662ea93e3b75968221e1ee409 Mon Sep 17 00:00:00 2001 From: Tom Moor Date: Fri, 9 Sep 2022 23:54:22 +0100 Subject: [PATCH] fix: Collections not loaded if sidebar item collapsed closes #4073 --- app/components/Sidebar/components/Collections.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/components/Sidebar/components/Collections.tsx b/app/components/Sidebar/components/Collections.tsx index 30be0a624..2549b4886 100644 --- a/app/components/Sidebar/components/Collections.tsx +++ b/app/components/Sidebar/components/Collections.tsx @@ -43,6 +43,10 @@ function Collections() { }), }); + React.useEffect(() => { + collections.fetchPage({ limit: 100 }); + }, [collections]); + return (
@@ -50,8 +54,6 @@ function Collections() { } heading={ isDraggingAnyCollection ? (