From 73e00548e2f82e54c74e7a5647b97f0beefc61a0 Mon Sep 17 00:00:00 2001 From: Ryan Mathis Date: Thu, 2 Mar 2023 07:54:02 -0700 Subject: [PATCH] SHIBUI-2540 Fixed issue with attribute release check all --- ui/src/app/form/component/widgets/AttributeReleaseWidget.js | 2 ++ 1 file changed, 2 insertions(+) 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); }