fixed the fix 😂

Signed-off-by: npiyush97 <npiyush35@gmail.com>
This commit is contained in:
npiyush97
2023-09-19 16:40:28 +05:30
parent b337d78c3b
commit 5af17aa583
@@ -125,8 +125,8 @@ export function TemplateEditorForm(props: TemplateEditorFormProps) {
}
const parsed: JsonValue = yaml
.parseAllDocuments(content)
.map(c => c.toJSON())
.filter(c => c)[0];
.filter(c => c)
.map(c => c.toJSON())[0];
if (!isJsonObject(parsed)) {
setSteps(undefined);