diff options
Diffstat (limited to 'ambari-web/app/views/common/widget/graph_widget_view.js')
-rw-r--r-- | ambari-web/app/views/common/widget/graph_widget_view.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ambari-web/app/views/common/widget/graph_widget_view.js b/ambari-web/app/views/common/widget/graph_widget_view.js index da30dca302..6feaa28d5d 100644 --- a/ambari-web/app/views/common/widget/graph_widget_view.js +++ b/ambari-web/app/views/common/widget/graph_widget_view.js @@ -311,7 +311,9 @@ App.GraphWidgetView = Em.View.extend(App.WidgetMixin, App.ExportMetricsMixin, { self.set('parentView.isExportMenuHidden', true); }); this.setYAxisFormatter(); - this.loadData(); + if (!arguments.length || this.get('parentView.data.length')) { + this.loadData(); + } var self = this; Em.run.next(function () { if (self.get('isPreview')) { |