{#each groupedReactions as reaction} { if (deleted) { reactions = reactions.filter((reaction) => reaction.id !== id); } else { reactions = [...reactions, { emoji, userId: user?.sub, galleryId: gallery_id, id }]; } }} /> {/each} { reactions = [...reactions, { emoji, userId: user?.sub, galleryId: gallery_id, id }]; }} />