From bed04bf66ef5f4398978020587fea35445b87596 Mon Sep 17 00:00:00 2001 From: Raul Martin Date: Mon, 27 Jan 2025 07:57:46 -0800 Subject: [PATCH] biome --- web/libs/editor/src/tags/control/Taxonomy/Taxonomy.jsx | 8 +------- web/libs/editor/src/tags/object/Base.js | 4 +--- 2 files changed, 2 insertions(+), 10 deletions(-) diff --git a/web/libs/editor/src/tags/control/Taxonomy/Taxonomy.jsx b/web/libs/editor/src/tags/control/Taxonomy/Taxonomy.jsx index 29cfb69598b1..5fb0b5076630 100644 --- a/web/libs/editor/src/tags/control/Taxonomy/Taxonomy.jsx +++ b/web/libs/editor/src/tags/control/Taxonomy/Taxonomy.jsx @@ -19,13 +19,7 @@ import SelectedChoiceMixin from "../../../mixins/SelectedChoiceMixin"; import { SharedStoreMixin } from "../../../mixins/SharedChoiceStore/mixin"; import VisibilityMixin from "../../../mixins/Visibility"; import { parseValue } from "../../../utils/data"; -import { - FF_LEAP_218, - FF_LSDV_4583, - FF_TAXONOMY_ASYNC, - FF_TAXONOMY_LABELING, - isFF, -} from "../../../utils/feature-flags"; +import { FF_LEAP_218, FF_LSDV_4583, FF_TAXONOMY_ASYNC, FF_TAXONOMY_LABELING, isFF } from "../../../utils/feature-flags"; import ControlBase from "../Base"; import ClassificationBase from "../ClassificationBase"; diff --git a/web/libs/editor/src/tags/object/Base.js b/web/libs/editor/src/tags/object/Base.js index 0dd6a2479bb6..7a875dc4ebdb 100644 --- a/web/libs/editor/src/tags/object/Base.js +++ b/web/libs/editor/src/tags/object/Base.js @@ -71,9 +71,7 @@ const ObjectBase = types // `checkMaxUsages` may unselect labels with already reached `maxUsages` const checkAndCollect = (list, s) => (s.checkMaxUsages ? list.concat(s.checkMaxUsages()) : list); const allStates = self.states() || []; - let exceeded; - - exceeded = allStates.reduce(checkAndCollect, []).filter((e) => e.selected); + const exceeded = allStates.reduce(checkAndCollect, []).filter((e) => e.selected); exceeded.forEach((e) => e.setSelected(false)); const states = self.activeStates() || [];