Skip to content
Snippets Groups Projects
Commit 535722c9 authored by Richard Fernando Heise Ferreira's avatar Richard Fernando Heise Ferreira
Browse files

Issue #214: FIX expand button on profile collection

parent 839ed132
No related branches found
No related tags found
1 merge request!202Issue #214: FIX expand button on profile collection
Pipeline #39954 passed
...@@ -72,6 +72,7 @@ export default function CreateCollectionModal({ open, onClose, idLogin }) { ...@@ -72,6 +72,7 @@ export default function CreateCollectionModal({ open, onClose, idLogin }) {
}, },
}); });
setOpenSucess(true); setOpenSucess(true);
setName("");
} catch (error) { } catch (error) {
// Log de erro caso ocorra // Log de erro caso ocorra
console.error("Erro ao criar a coleção:", error); console.error("Erro ao criar a coleção:", error);
......
...@@ -62,7 +62,7 @@ export default function ProfileCollections({ id, idLogin }) { ...@@ -62,7 +62,7 @@ export default function ProfileCollections({ id, idLogin }) {
getWidth().then((res) => { getWidth().then((res) => {
setCardsPerRow(Math.floor(res / 300)); setCardsPerRow(Math.floor(res / 300));
}); });
}, []); }, [got]);
useEffect(() => { useEffect(() => {
...@@ -217,7 +217,7 @@ export default function ProfileCollections({ id, idLogin }) { ...@@ -217,7 +217,7 @@ export default function ProfileCollections({ id, idLogin }) {
} }
</div> </div>
</div> </div>
<GroupCardsCollections cardsPerRow={cardsPerRow} data={item.collection_items} /> <GroupCardsCollections data={item.collection_items} cardsPerRow={cardsPerRow} />
</div> </div>
</div> </div>
</div> </div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment