We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6540733 commit 8e2c75cCopy full SHA for 8e2c75c
src/components/YamlEditor/YamlEditor.jsx
@@ -47,8 +47,6 @@ export default function YamlEditor() {
47
try {
48
const doc = jsYaml.load(newValue, { strict: true });
49
const valid = validate(doc);
50
- console.log("Validation result:", valid);
51
- console.log("Validation errors:", validate.errors);
52
53
if (!valid && validate.errors) {
54
setAnnotations(
@@ -69,12 +67,6 @@ export default function YamlEditor() {
69
67
setAnnotations([]);
70
68
}
71
} catch (err) {
72
- console.error("Error:", err);
73
- console.log({
74
- errorMessage: err.reason,
75
- column: err.mark?.column,
76
- line: err.mark?.line,
77
- });
78
setAnnotations([
79
{
80
row: err.instancePath ? getLineNumber(newValue, err.instancePath) : 0,
0 commit comments