minor bug fix

This commit is contained in:
Daniel
2023-07-24 14:20:05 -04:00
parent 1833f9402c
commit 08140c22aa
+3 -1
View File
@@ -35,6 +35,8 @@ export default function LinkCard({ link, count, className }: Props) {
const { collections } = useCollectionStore(); const { collections } = useCollectionStore();
const { links } = useLinkStore();
const { account } = useAccountStore(); const { account } = useAccountStore();
let shortendURL; let shortendURL;
@@ -58,7 +60,7 @@ export default function LinkCard({ link, count, className }: Props) {
(e) => e.id === link.collection.id (e) => e.id === link.collection.id
) as CollectionIncludingMembersAndLinkCount ) as CollectionIncludingMembersAndLinkCount
); );
}, [collections]); }, [collections, links]);
const { removeLink, updateLink } = useLinkStore(); const { removeLink, updateLink } = useLinkStore();