Small changes.

This commit is contained in:
Daniel
2023-02-25 07:52:33 +03:30
parent 9b53608097
commit f3e104aafe
3 changed files with 17 additions and 8 deletions
@@ -17,10 +17,14 @@ export default function ({ onChange }: any) {
return e.id === collectionId;
});
const defaultCollection = {
value: activeCollection?.id,
label: activeCollection?.name,
};
let defaultCollection = null;
if (activeCollection) {
defaultCollection = {
value: activeCollection?.id,
label: activeCollection?.name,
};
}
useEffect(() => {
const formatedCollections = collections.map((e) => {