-
Bug
-
Resolution: Done-Errata
-
Normal
-
4.14
Description of problem:
When using the modal dialogs in a hook as part of the actions hook (i.e. useApplicationsActionsProvider) the console will throw an error since the console framework will pass null objects as part of the render cycle. According to Jon Jackson, the console should be safe from null objects but it looks like the code for useDeleteModal and getGroupVersionKindForresource are not safe,
Version-Release number of selected component (if applicable):
How reproducible:
Always
Steps to Reproduce:
1. Use one of the modal APIs in an actions provider hook 2. 3.
Actual results:
Caught error in a child component: TypeError: Cannot read properties of undefined (reading 'split') at i (main-chunk-9fbeef79a…d3a097ed.min.js:1:1) at u (main-chunk-9fbeef79a…d3a097ed.min.js:1:1) at useApplicationActionsProvider (useApplicationActionsProvider.tsx:23:43) at ApplicationNavPage (ApplicationDetails.tsx:38:67) at na (vendors~main-chunk-8…87b.min.js:174297:1) at Hs (vendors~main-chunk-8…87b.min.js:174297:1) at Sc (vendors~main-chunk-8…87b.min.js:174297:1) at Cc (vendors~main-chunk-8…87b.min.js:174297:1) at _c (vendors~main-chunk-8…87b.min.js:174297:1) at pc (vendors~main-chunk-8…87b.min.js:174297:1)
Expected results:
Works with no error
Additional info:
- blocks
-
OCPBUGS-29080 [release-4.15] Modal dialogs expose code that is not null object safe
- Closed
- is cloned by
-
OCPBUGS-29080 [release-4.15] Modal dialogs expose code that is not null object safe
- Closed
- links to
-
RHEA-2024:0041 OpenShift Container Platform 4.16.z bug fix update