From 37c143d5c1e001e00792d4f2fcf459a304192251 Mon Sep 17 00:00:00 2001 From: jason <37859597+zachowj@users.noreply.github.com> Date: Wed, 28 Aug 2024 07:07:40 -0700 Subject: [PATCH] fix(action): Ensure label displays only once --- src/editor/components/idSelector/IdSelector.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/editor/components/idSelector/IdSelector.ts b/src/editor/components/idSelector/IdSelector.ts index 933bb7ae00..81223d6021 100644 --- a/src/editor/components/idSelector/IdSelector.ts +++ b/src/editor/components/idSelector/IdSelector.ts @@ -136,7 +136,7 @@ export default class IdSelector { for (const id of labelIds) { const l = labels.find((l) => l.label_id === id); if (l) { - filteredLabels.push(l); + pushIfNotExist(filteredLabels, l); } } };