fix: duplicate following entries

This commit is contained in:
RockinChaos 2024-08-06 17:39:35 -07:00
parent 81e6c65fcf
commit 8d07e4d4e6

View file

@ -9,7 +9,7 @@
</script>
{#await following then res}
{@const following = res?.data?.Page?.mediaList}
{@const following = [...new Map(res?.data?.Page?.mediaList.map(item => [item.user.name, item])).values()]}
{#if following?.length}
<div class='w-full d-flex flex-row align-items-center pt-20 mt-10'>
<hr class='w-full' />