We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f4dc71c commit 0673800Copy full SHA for 0673800
pages/validators/yaml.tsx
@@ -33,11 +33,8 @@ const Home: NextPage = () => {
33
let configObject;
34
try {
35
configObject = parse(config);
36
- if (!configObject) {
37
- setError("Missing Values");
38
- setParsedConfig({})
39
- } else if (!(configObject instanceof Object)) {
40
- setError("Key without value present")
+ if (!configObject || !(configObject instanceof Object)) {
+ setError("must be object");
41
setParsedConfig({})
42
} else {
43
setError(false);
0 commit comments