Skip to content

Commit

Permalink
Merge pull request #972 from rgantzos/main
Browse files Browse the repository at this point in the history
Fix duplicates in `select-self`
  • Loading branch information
rgantzos authored Nov 30, 2024
2 parents df8ecfc + 460de3a commit 3b8cd66
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion features/select-self/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,9 @@ export default async function ({ feature, console }) {
feature.self.enabled ||
feature.traps.vm.runtime._editingTarget?.sprite?.name !== SPRITES[i]
) {
data.push([SPRITES[i], SPRITES[i]]);
if (!data.find((el) => el[0] === SPRITES[i])) {
data.push([SPRITES[i], SPRITES[i]]);
}
}
}

Expand Down

0 comments on commit 3b8cd66

Please sign in to comment.