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

Controla casos de error en listado

Comprueba que haya padres pendientes de mostrar antes de intentarlo.
Comprueba que haya configuración de cabecera de tabla antes de usarla.
parent 1a1f7384
Loading
Loading
Loading
Loading
+7 −3
Original line number Diff line number Diff line
@@ -289,11 +289,15 @@ define([
			instance && this._publish(instance.getChannel('SHOW'), obj);
		},

		_showPendingParents: function(item) {
		_showPendingParents: function() {

			var count = (this._pendingParentsToShow.length - 1);
			if (!this._pendingParentsToShow) {
				return;
			}

			var pendingParents = this._pendingParentsToShow.length - 1;

			for (var i = count; i >= 0; i--) {
			for (var i = pendingParents; i >= 0; i--) {
				this._showPendingParent(this._pendingParentsToShow[i]);
			}
		},
+1 −1
Original line number Diff line number Diff line
@@ -327,7 +327,7 @@ define([

			var headerConfig = this.tableConfig.header;

			if (headerConfig.notMenuColumns || !this._headersData.length) {
			if ((headerConfig && headerConfig.notMenuColumns) || !this._headersData.length) {
				return;
			}