B #1533: TypeError: Cannot read property 'updateView'

(cherry picked from commit c4980894b4)
This commit is contained in:
Abel Coronado authored and Ruben S. Montero committed 2017-11-28 09:46:42 +01:00
1 parent 4a8c96fef7
commit 490e2aea80
1 file changed
+4 -1
@@ -55,7 +55,10 @@ define(function(require) {
type: "list",
call: that.openNebulaResource.list,
callback: function(request, response) {
Sunstone.getDataTable(that.tabId).updateView(request, response);
var datatable = Sunstone.getDataTable(that.tabId);
if (datatable){
datatable.updateView(request, response);
}
},
error: Notifier.onError
}