Commit de1632e4 authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Evita petición de timeseries sin selección previa

parent fc9bb9b8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -152,7 +152,7 @@ define([

		_prepareTimeSeriesData: function() {

			if (this._showChartIsValid()) {
			if (this._showChartIsValid() || this._getSelectionIsEmpty()) {
				return;
			}

+7 −0
Original line number Diff line number Diff line
@@ -88,6 +88,13 @@ define([
			}
		},

		_getSelectionIsEmpty: function() {

			var selectedKeys = Object.keys(this._selected);

			return !selectedKeys.length;
		},

		_showChartIsValid: function() {

			return !!Object.keys(this._insertedInTimeSeriesData).length;