Commit 8fde615b authored by Pedro Eduardo Trujillo's avatar Pedro Eduardo Trujillo
Browse files

Evita nodos sin ID en genericDisplayer

parent b7829ccc
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -88,6 +88,8 @@ define([

		_addGenericContent: function(content, req) {

			this._removeOldContent();

			if (content.getChannel) {
				this._addModuleContent(content, req || {});
			} else {
@@ -97,8 +99,6 @@ define([

		_addModuleContent: function(contentModule, req) {

			this._removeOldContent();

			this._oldContentModule = contentModule;

			var showProps = req.showProps || {};
@@ -112,8 +112,6 @@ define([

		_addNodeContent: function(contentNode) {

			this._removeOldContent();

			this._oldContentNode = put(this._contentNode, contentNode);
		},

+3 −2
Original line number Diff line number Diff line
@@ -118,10 +118,11 @@ define([

			if (!nodeId) {
				console.error('Received a topbar content node to add without ID at module "%s"', this.getChannel());
			} else {
				this._topbarContentNodes[nodeId] = contentParentNode;
				return;
			}

			this._topbarContentNodes[nodeId] = contentParentNode;

			put(contentParentNode, contentNode);
		},