Skip to content

Commit

Permalink
fix: pass displayNameProp to OrgUnitDimension
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkrulltott committed May 6, 2024
1 parent afc06c2 commit 77928c2
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/components/DimensionsPanel/Dialogs/DialogManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ export class DialogManager extends Component {

// The OU content is persisted as mounted in order
// to cache the org unit tree data
renderPersistedContent = (dimensionProps) => {
renderPersistedContent = (dimensionProps, displayNameProperty) => {
const { ouIds, metadata, parentGraphMap, dialogId } = this.props

if (this.state.ouMounted) {
Expand All @@ -253,6 +253,7 @@ export class DialogManager extends Component {
roots={this.props.rootOrgUnits.map(
(rootOrgUnit) => rootOrgUnit.id
)}
displayNameProp={displayNameProperty}
{...dimensionProps}
/>
</div>
Expand Down Expand Up @@ -455,7 +456,10 @@ export class DialogManager extends Component {

return (
<Fragment>
{this.renderPersistedContent(dimensionProps)}
{this.renderPersistedContent(
dimensionProps,
displayNameProperty
)}
{dialogId && dynamicContent()}
</Fragment>
)
Expand Down

0 comments on commit 77928c2

Please sign in to comment.