Open Closed

Angular Identity Module: Organization Unit Edit Modal Throws 'displayName' Undefined Error When No Unit Selected #9704


User avatar
0
dcsimoes created

Description When using the Organization Units management UI from @volo/abp.ng.identity, the edit modal template throws an error if opened without first selecting a unit from the tree.

Error

java
Copiar
Editar
core.mjs:6720 ERROR TypeError: Cannot read properties of undefined (reading 'displayName')
    at OrganizationUnitsComponent_ng_template_6_Conditional_1_Template (volo-abp.ng.identity.mjs:94:103)
    at executeTemplate (core.mjs:12429:9)
    at refreshView (core.mjs:14114:13)
    at detectChangesInView (core.mjs:14334:9)
    at detectChangesInViewIfAttached (core.mjs:14294:5)
    at detectChangesInEmbeddedViews (core.mjs:14251:13)
    at refreshView (core.mjs:14143:9)
    at detectChangesInView (core.mjs:14334:9)
    at detectChangesInViewIfAttached (core.mjs:14294:5)
    at detectChangesInEmbeddedViews (core.mjs:14251:13)
The error keeps appearing in a loop during change detection.

Steps to Reproduce Create an ABP Angular application with the Identity Management module enabled.

Navigate to Identity > Organization Units.

Without selecting any node, right-click an organization unit in the tree and choose Edit.

Check the browser console.

Expected Behavior The edit modal should open without errors, even if no unit was pre-selected.

Additional Details This issue does not occur if you first select a node in the tree and then open the edit modal.


1 Answer(s)
  • User Avatar
    0
    sumeyye.kurtulus created
    Support Team Angular Expert

    Hello,

    This problem has been solved in an internal issue and it will be released within the next release. You can follow the details here https://github.com/abpframework/abp/releases.

    Thank you for your cooperation.

Boost Your Development
ABP Live Training
Packages
See Trainings
Mastering ABP Framework Book
The Official Guide
Mastering
ABP Framework
Learn More
Mastering ABP Framework Book
Made with ❤️ on ABP v10.0.0-preview. Updated on September 18, 2025, 07:10