Skip to content

Commit 1ae0a92

Browse files
authoredFeb 21, 2024
ACM-9967 fix cursor moving bug in search yaml editor (stolostron#3310)
Signed-off-by: zlayne <zlayne@redhat.com>
1 parent db713d1 commit 1ae0a92

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

‎frontend/src/components/YamlEditor.tsx

-2
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,6 @@ export default function YAMLEditor(props: {
5151
let managedFieldsStart = 0
5252
let managedFieldsEnd = 0
5353
if (resourceYAML && !hasManagedFieldsFolded) {
54-
/* istanbul ignore next */
55-
process.env.NODE_ENV !== 'test' && editorRef.current?.setSelection(new monaco.Range(1, 0, 1, 0))
5654
const resourceLines = resourceYAML.split('\n')
5755
resourceLines.forEach((line, i) => {
5856
if (line === ' managedFields:') {

0 commit comments

Comments
 (0)