Skip to content

Commit

Permalink
fix: handle CKL with no root XML comment (#724)
Browse files Browse the repository at this point in the history
  • Loading branch information
csmig authored Aug 1, 2022
1 parent 8bf8b8b commit f1c17a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/js/SM/Parsers.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@
if (!parsed.CHECKLIST[0].STIGS) throw (new Error("No STIGS element"))

const comments = parsed['__comment']
const resultEngineCommon = comments.length ? processRootXmlComments(comments) : null
const resultEngineCommon = comments?.length ? processRootXmlComments(comments) : null

let returnObj = {}
returnObj.target = processAsset(parsed.CHECKLIST[0].ASSET[0])
Expand Down

0 comments on commit f1c17a9

Please sign in to comment.