Skip to content

Commit f15190a

Browse files
new line
1 parent f916e2e commit f15190a

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/components/YamlEditor/YamlEditor.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export default function YamlEditor() {
4040
setValue(initialValue);
4141
validateAndSetAnnotations(initialValue);
4242
}, []);
43+
4344
function validateAndSetAnnotations(yaml) {
4445
try {
4546
const doc = jsYaml.load(yaml, { strict: true });
@@ -86,6 +87,7 @@ export default function YamlEditor() {
8687
]);
8788
}
8889
}
90+
8991
function getLineNumber(yaml, instancePath) {
9092
const lines = yaml.split("\n");
9193
const pathParts = instancePath.split("/").filter(Boolean);
@@ -128,6 +130,7 @@ export default function YamlEditor() {
128130

129131
return lineNumber;
130132
}
133+
131134
function onChange(newValue) {
132135
setValue(newValue);
133136
validateAndSetAnnotations(newValue);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy