Skip to content

Commit

Permalink
SHIBUI-2540 Fixed issue with attribute release check all
Browse files Browse the repository at this point in the history
  • Loading branch information
rmathis committed Mar 2, 2023
1 parent 630caad commit 73e0054
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions ui/src/app/form/component/widgets/AttributeReleaseWidget.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { faCheck, faTimes } from "@fortawesome/free-solid-svg-icons";
import Button from 'react-bootstrap/Button';
import ListGroup from 'react-bootstrap/ListGroup';
import Badge from "react-bootstrap/Badge";
import uniq from "lodash/uniq";

const selectValue = (value, selected, all) => {
const at = all.indexOf(value);
Expand Down Expand Up @@ -59,6 +60,7 @@ const AttributeReleaseWidget = ({
const all = (enumOptions).map(({ value }) => value);
let update = [];
enumOptions.forEach(v => update = selectValue(v.value, update, all));
update = uniq(update);

onChange(update);
}
Expand Down

0 comments on commit 73e0054

Please sign in to comment.