File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -147,7 +147,7 @@ $(document).ready(function () {
147147 }
148148
149149 // Find the instance with the matching id and add its settings
150- const instance = instances . find ( inst => inst . id === instanceId ) ;
150+ const instance = instances ? .find ( inst => inst . id === instanceId ) ;
151151 if ( instance ?. settings ) {
152152 Object . assign ( legacyConfig , instance . settings ) ;
153153 }
Original file line number Diff line number Diff line change @@ -378,9 +378,12 @@ const requestServerConfig = {
378378 } ,
379379 } ;
380380
381- // Handle instances: remove "null" if present and add to filter if not empty
382- if ( instances . length ) {
383- filter . configFilter . instances = { ids : instances } ;
381+ if ( instances == null ) {
382+ filter . configFilter . instances = null ; // Return no instances
383+ } else if ( instances . length > 0 ) {
384+ filter . configFilter . instances = { ids : instances } ; // Return selected instances
385+ } else {
386+ filter . configFilter . instances = instances ; // Return all instances
384387 }
385388
386389 if ( instanceTypes . length > 0 ) {
You can’t perform that action at this time.
0 commit comments