diff --git a/src/components/OrgUnitDimension/OrgUnitDimension.js b/src/components/OrgUnitDimension/OrgUnitDimension.js index 5d2d7115a..9ed1078de 100644 --- a/src/components/OrgUnitDimension/OrgUnitDimension.js +++ b/src/components/OrgUnitDimension/OrgUnitDimension.js @@ -51,10 +51,7 @@ const OrgUnitDimension = ({ let result = [...selected] if (checked && DYNAMIC_ORG_UNITS.includes(id)) { - result = [ - ...result.filter((item) => DYNAMIC_ORG_UNITS.includes(item.id)), - { id, displayName }, - ] + result = [...result, { id, displayName }] } else if (checked) { result.push({ id, path, name: displayName }) } else { @@ -236,13 +233,7 @@ const OrgUnitDimension = ({ /> )} -