Skip to content

Commit

Permalink
Fix duplicates in select-self
Browse files Browse the repository at this point in the history
  • Loading branch information
rgantzos committed Nov 30, 2024
1 parent 0ad6f43 commit 460de3a
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 460de3a

Please sign in to comment.