lib/rhoconnect/web-console/models/doc.js in rhoconnect-3.3.1.beta2 vs lib/rhoconnect/web-console/models/doc.js in rhoconnect-3.3.1.beta3

- old
+ new

@@ -45,11 +45,13 @@ else{ data += "<tr><th>Document is Empty</th></tr>"; } $('tr.remove-tr-doc').remove(); $('#docdata-table tr:last').after(data); - $(".query-status")[0].firstChild.className = "label label-success"; - $(".query-status")[0].firstChild.innerHTML = "success"; + if($(".query-status")[0] != undefined){ + $(".query-status")[0].firstChild.className = "label label-success"; + $(".query-status")[0].firstChild.innerHTML = "success"; + } }, error: function(resp){ if(resp.status == 422){ new App.Views.Index() } \ No newline at end of file