diff --git a/web/pgadmin/misc/workspaces/static/js/AdHocConnection.jsx b/web/pgadmin/misc/workspaces/static/js/AdHocConnection.jsx index 51684a120..c6c550e0e 100644 --- a/web/pgadmin/misc/workspaces/static/js/AdHocConnection.jsx +++ b/web/pgadmin/misc/workspaces/static/js/AdHocConnection.jsx @@ -148,7 +148,8 @@ class AdHocConnectionSchema extends BaseUISchema { optionsLoaded: (res) => self.flatServers = flattenSelectOptions(res), optionsReloadBasis: `${self.flatServers.map((s) => s.connected).join('')}${state.connection_refresh}`, }), - depChange: (state)=>{ + depChange: (state, source)=>{ + if(source == 'connection_refresh') return; /* Once the option is selected get the name */ /* Force sid to null, and set only if connected */ let selectedServer = _.find(