Skip to content

Commit

Permalink
biome
Browse files Browse the repository at this point in the history
  • Loading branch information
luarmr committed Jan 27, 2025
1 parent 6e6afe6 commit bed04bf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
8 changes: 1 addition & 7 deletions web/libs/editor/src/tags/control/Taxonomy/Taxonomy.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
4 changes: 1 addition & 3 deletions web/libs/editor/src/tags/object/Base.js
Original file line number Diff line number Diff line change
Expand Up @@ -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() || [];
Expand Down

0 comments on commit bed04bf

Please sign in to comment.