diff --git a/src/lib/albert.ts b/src/lib/albert.ts index 51221c3..e627734 100644 --- a/src/lib/albert.ts +++ b/src/lib/albert.ts @@ -46,7 +46,9 @@ export const useAlbertCollections = () => { }; useEffect(() => { - reloadCollections(); + if (!collections.length) { + reloadCollections(); + } }, [reloadCollections]); return { collections, reloadCollections }; @@ -115,7 +117,7 @@ export const addFileToCollection = async ({ return json; } return { - detail: "plop", + detail: "erreur", }; }); };