From c4980894b48630ad911797254281baaa40cc145c Mon Sep 17 00:00:00 2001 From: Abel Coronado Date: Tue, 28 Nov 2017 09:45:16 +0100 Subject: [PATCH] B #1533: TypeError: Cannot read property 'updateView' --- src/sunstone/public/app/utils/common-actions.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/sunstone/public/app/utils/common-actions.js b/src/sunstone/public/app/utils/common-actions.js index 8f3598f0c6..b34bf10d61 100644 --- a/src/sunstone/public/app/utils/common-actions.js +++ b/src/sunstone/public/app/utils/common-actions.js @@ -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 }