Description of problem: When the user imports a YAML and presses just enter in the textarea the console breaks and shows an error while in react dev mode (logs an warning when in production) Version-Release number of selected component (if applicable): 4.8 and 4.9 master (tested with commit 32237741dbab53269d41e844948ae19042958d02) How reproducible: Always Steps to Reproduce: 1. Open console and click on the plus icon on the main navigation 2. Textarea is automatically focus, if user presses enter to add a new line an error was logged Actual results: Error Cannot read property 'mappings' of undefined Call Stack findManagedMetadata fold tryFolding Expected results: No error in dev mode and no warning in browser log in production mode. Additional info: None
Happen in 4.8, but it doesn't break the UI.
Will investigate next sprint.
Created attachment 1815399 [details] No Error 4.9.0-0.nightly-2021-08-18-084341 Steps to Reproduce: 1. Open console and click on the plus icon on the main navigation 2. Textarea is automatically focus, if user presses enter to add a new line no error is logged.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: OpenShift Container Platform 4.9.0 bug fix and security update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2021:3759