fix codemirror in add host, add inventory, and workflow job details

This commit is contained in:
Keith Grant
2019-03-22 10:11:18 -04:00
parent 8e48a3a523
commit 7476fefd65
6 changed files with 11 additions and 25 deletions

View File

@@ -73,6 +73,9 @@ function atCodeMirrorController (
return true;
}
if (typeof str === 'undefined') {
return '---';
}
if (typeof str !== 'string') {
const yamlStr = jsyaml.safeDump(str);
// jsyaml.safeDump doesn't process an empty object correctly