Extra var parsing

added a check for an empty string
This commit is contained in:
Jared Tabor
2014-11-30 22:29:33 -05:00
parent 0c10581ecd
commit 15f710331b

View File

@@ -103,7 +103,9 @@ angular.module('VariablesHelper', ['Utilities'])
} }
} else { } else {
try { try {
if(variables=== ""){
variables = '---';
}
json_data = jsyaml.load(variables); json_data = jsyaml.load(variables);
if(json_data!==null){ if(json_data!==null){
$.each( json_data, function( key, value ) { $.each( json_data, function( key, value ) {