File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
services/static-webserver/client/source/class/osparc/form/renderer Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff 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 ) ;
You can’t perform that action at this time.
0 commit comments