Skip to content

Commit

Permalink
Ensure that the Server List on the Welcome page is refreshed only whe…
Browse files Browse the repository at this point in the history
…n there are changes in the Object Explorer.
  • Loading branch information
akshay-joshi committed Jan 23, 2025
1 parent 5ee0328 commit 684818d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/pgadmin/misc/workspaces/static/js/AdHocConnection.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit 684818d

Please sign in to comment.