diff --git a/ui/src/app/form/component/widgets/AttributeReleaseWidget.js b/ui/src/app/form/component/widgets/AttributeReleaseWidget.js index 2dd7cc269..2e2f5f611 100644 --- a/ui/src/app/form/component/widgets/AttributeReleaseWidget.js +++ b/ui/src/app/form/component/widgets/AttributeReleaseWidget.js @@ -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); @@ -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); }