Details
-
Type:
Bug
-
Status: Open (View Workflow)
-
Priority:
TBD
-
Resolution: Unresolved
-
Affects Version/s: None
-
Fix Version/s: 5.0.0
-
Labels:None
-
Template:
-
Development Team:Prokopovych
Description
Overview: The API may allow the deletion of a status, material-type, or effective location that is in use by an item record. At present, the UI will die with an NPE if that happens. The UI should recover.
./src/Instance/ItemsList/utils.js: 'status': ({ status }) => status.name.toLowerCase(), ./src/Instance/ItemsList/utils.js: 'materialType': ({ materialType }) => materialType.name.toLowerCase(), ./src/Instance/ItemsList/utils.js: 'effectiveLocation': ({ effectiveLocation }) => effectiveLocation.name.toLowerCase(),
should probably be rewritten like ... status.name?.toLowerCase()
Interested parties: Theodor Tolstoy