Skip to content

Commit ac056ea

Browse files
committed
minor
1 parent 290163b commit ac056ea

File tree

1 file changed

+5
-3
lines changed
  • services/static-webserver/client/source/class/osparc/form/renderer

1 file changed

+5
-3
lines changed

services/static-webserver/client/source/class/osparc/form/renderer/PropForm.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,12 +138,14 @@ qx.Class.define("osparc.form.renderer.PropForm", {
138138
//
139139
__getHideablePorts: function() {
140140
const hideablePorts = [];
141-
const portIds = this.getPortIds();
142-
// if there is no minVisibleInputs defined, make at least 4 visible
143-
const minVisibleInputs = this.getNode().getMinVisibleInputs() || 4;
141+
const minVisibleInputs = this.getNode().getMinVisibleInputs();
142+
if (minVisibleInputs === null) {
143+
return hideablePorts;
144+
}
144145
// start from the last port and check the port types
145146
// if all last ports are the same type, then mark them as hideable
146147
let hideablePortType = null;
148+
const portIds = this.getPortIds();
147149
for (let i=portIds.length-1; i>=minVisibleInputs; i--) {
148150
const portId = portIds[i];
149151
const ctrl = this._form.getControl(portId);

0 commit comments

Comments
 (0)