Skip to content

Commit

Permalink
fix: system / user setting for display name not respected in Org Unit…
Browse files Browse the repository at this point in the history
… tree (DHIS2-15000) (#3195)

Co-authored-by: Martin Ohlson <martin@moid.se>
  • Loading branch information
jenniferarnesen and martinkrulltott committed May 13, 2024
1 parent 3c69a86 commit 8560478
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
"start-server-and-test": "^2.0.3"
},
"dependencies": {
"@dhis2/analytics": "^26.6.5",
"@dhis2/analytics": "^26.6.9",
"@dhis2/app-runtime": "3.9.4",
"@dhis2/app-runtime-adapter-d2": "^1.1.0",
"@dhis2/app-service-alerts": "3.9.4",
Expand Down
4 changes: 3 additions & 1 deletion src/components/orgunits/OrgUnitSelect.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { OrgUnitDimension } from '@dhis2/analytics'
import { OrgUnitDimension, useCachedDataQuery } from '@dhis2/analytics'
import { CenteredContent, CircularLoader, Help } from '@dhis2/ui'
import cx from 'classnames'
import PropTypes from 'prop-types'
Expand All @@ -23,6 +23,7 @@ const OrgUnitSelect = ({
hideGroupSelect = false,
warning,
}) => {
const { nameProperty } = useCachedDataQuery()
const { roots, levels, loading, error } = useOrgUnits()
const rows = useSelector((state) => state.layerEdit.rows)
const dispatch = useDispatch()
Expand Down Expand Up @@ -84,6 +85,7 @@ const OrgUnitSelect = ({
hideLevelSelect={hideLevelSelect}
hideGroupSelect={hideGroupSelect}
warning={!hasOrgUnits ? warning : null}
displayNameProp={nameProperty}
/>
</div>
{!hideAssociatedGeometry && <AssociatedGeometrySelect />}
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2016,10 +2016,10 @@
classnames "^2.3.1"
prop-types "^15.7.2"

"@dhis2/analytics@^26.6.5":
version "26.6.5"
resolved "https://registry.yarnpkg.com/@dhis2/analytics/-/analytics-26.6.5.tgz#44ee29a279c37f3969096d859bc0f07d953e3f42"
integrity sha512-ob6kNEEkIAC50RtKuUZWi8Y04uwsPHK/EiYhzxZkSOdS5wFm8X+88KZrD//fILXQjwMhJvl/4+F/T0qVxOF/jQ==
"@dhis2/analytics@^26.6.9":
version "26.6.9"
resolved "https://registry.yarnpkg.com/@dhis2/analytics/-/analytics-26.6.9.tgz#932847c4bee3dd720d5d0b872c6b11eeae8b260c"
integrity sha512-AcU5FKH1Rmi8GdgqdJ1aOPqTKhztLafhzKNvGBdb5rSNR8/KS2djyTxxPhL0fdusu+1Rc04RFSkOLajq3ChVrQ==
dependencies:
"@dhis2/d2-ui-rich-text" "^7.4.1"
"@dhis2/multi-calendar-dates" "1.0.0"
Expand Down

0 comments on commit 8560478

Please sign in to comment.