Skip to content

Commit

Permalink
Merge branch 'dev' into chip-design
Browse files Browse the repository at this point in the history
  • Loading branch information
martinkrulltott authored May 14, 2024
2 parents 88e89f0 + ddcaf7c commit ed9b04a
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 ed9b04a

Please sign in to comment.