Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
This doesn't seem to affect functionality
There are 2 distinct errors in the console when starting/stopping process groups either from the operation control or the context menu:
ERROR TypeError: Cannot read properties of undefined (reading 'canRead') at OperationControl.getContextName (operation-control.component.ts:134:40) at OperationControl_ng_container_6_div_1_Template (operation-control.component.html:38:61) at executeTemplate (core.mjs:12003:13) at refreshView (core.mjs:13498:13) at detectChangesInView (core.mjs:13663:9) at detectChangesInEmbeddedViews (core.mjs:13606:13) at refreshView (core.mjs:13522:9) at detectChangesInView (core.mjs:13663:9) at detectChangesInEmbeddedViews (core.mjs:13606:13) at refreshView (core.mjs:13522:9)
ERROR TypeError: Cannot read properties of undefined (reading 'canRead') at SVGRectElement.<anonymous> (process-group-manager.service.ts:204:34) at SVGRectElement.<anonymous> (classed.js:58:12) at Selection.__WEBPACK_DEFAULT_EXPORT__ [as each] (each.js:5:37) at Selection.__WEBPACK_DEFAULT_EXPORT__ [as classed] (classed.js:71:15) at ProcessGroupManager.updateProcessGroups (process-group-manager.service.ts:203:39) at ProcessGroupManager.set (process-group-manager.service.ts:1368:14) at Object.next (process-group-manager.service.ts:1326:22) at ConsumerObserver.next (Subscriber.js:91:33) at SafeSubscriber._next (Subscriber.js:60:26) at SafeSubscriber.next (Subscriber.js:31:18)
Both appear related to the reducer assuming the response of the api call returns the whole object with `permissions` and such. in the case of process groups, it is a very sparse return object and doesn't have those.
We should be sure the "fix" works for all startable/stoppable components.
Attachments
Issue Links
- links to