minor bug fix
This commit is contained in:
@@ -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();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user