Skip to content

Commit 684818d

Browse files
committed
Ensure that the Server List on the Welcome page is refreshed only when there are changes in the Object Explorer.
1 parent 5ee0328 commit 684818d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/pgadmin/misc/workspaces/static/js/AdHocConnection.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,8 @@ class AdHocConnectionSchema extends BaseUISchema {
148148
optionsLoaded: (res) => self.flatServers = flattenSelectOptions(res),
149149
optionsReloadBasis: `${self.flatServers.map((s) => s.connected).join('')}${state.connection_refresh}`,
150150
}),
151-
depChange: (state)=>{
151+
depChange: (state, source)=>{
152+
if(source == 'connection_refresh') return;
152153
/* Once the option is selected get the name */
153154
/* Force sid to null, and set only if connected */
154155
let selectedServer = _.find(

0 commit comments

Comments
 (0)