Skip to content

Commit

Permalink
fix: collection
Browse files Browse the repository at this point in the history
  • Loading branch information
revolunet committed Dec 13, 2024
1 parent a2ca82e commit bece5ee
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/lib/albert.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,9 @@ export const useAlbertCollections = () => {
};

useEffect(() => {
reloadCollections();
if (!collections.length) {
reloadCollections();
}
}, [reloadCollections]);

return { collections, reloadCollections };
Expand Down Expand Up @@ -115,7 +117,7 @@ export const addFileToCollection = async ({
return json;
}
return {
detail: "plop",
detail: "erreur",
};
});
};
Expand Down

0 comments on commit bece5ee

Please sign in to comment.