Merge branch 'master' into support/editor-validation-refactor

This commit is contained in:
kyle
2017-12-23 00:18:26 -06:00
committed by GitHub
3 changed files with 10 additions and 3 deletions

View File

@@ -68,7 +68,7 @@ export const parseToJson = (str) => ({specActions, specSelectors, errActions}) =
line: e.mark && e.mark.line ? e.mark.line + 1 : undefined
})
}
if(json) {
if(json && typeof json === "object") {
return specActions.updateJsonSpec(json)
}
return {}