Skip to content
This repository was archived by the owner on Dec 15, 2025. It is now read-only.

Commit bece5ee

Browse files
committed
fix: collection
1 parent a2ca82e commit bece5ee

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/lib/albert.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,9 @@ export const useAlbertCollections = () => {
4646
};
4747

4848
useEffect(() => {
49-
reloadCollections();
49+
if (!collections.length) {
50+
reloadCollections();
51+
}
5052
}, [reloadCollections]);
5153

5254
return { collections, reloadCollections };
@@ -115,7 +117,7 @@ export const addFileToCollection = async ({
115117
return json;
116118
}
117119
return {
118-
detail: "plop",
120+
detail: "erreur",
119121
};
120122
});
121123
};

0 commit comments

Comments
 (0)