Skip to content

Commit fe2332f

Browse files
committed
Fixed merge conflict issues.
1 parent d26b63f commit fe2332f

2 files changed

Lines changed: 3 additions & 10 deletions

File tree

web/pgadmin/browser/static/js/browser.js

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -206,12 +206,6 @@ define('pgadmin.browser', [
206206
uiloaded: function() {
207207
this.set_master_password('');
208208
this.check_version_update();
209-
const prefStore = usePreferences.getState();
210-
let save_the_workspace = prefStore.getPreferencesForModule('misc').save_app_state;
211-
if(save_the_workspace){
212-
this.restore_pgadmin_state();
213-
pgBrowser.docker.default_workspace.focus();
214-
}
215209
// Assign and Update shortcuts from preferences.
216210
MainMenuFactory.subscribeShortcutChanges();
217211
},

web/pgadmin/settings/static/ApplicationStateProvider.jsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function ApplicationStateProvider({children}){
2727
const saveToolData = (toolName, connectionInfo, transId, toolData) =>{
2828
let data = {
2929
'tool_name': toolName,
30-
'connection_info': connectionInfo,
30+
'connection_info': connectionInfo,
3131
'trans_id': transId,
3232
'tool_data': toolData
3333
};
@@ -57,7 +57,7 @@ export function ApplicationStateProvider({children}){
5757
console.warn('Unable to retrieve tool content.');
5858
return null;
5959
}
60-
60+
6161
const toolData = res.data.data.result;
6262
const connectionInfo = toolData?.connection_info;
6363
const toolContent = JSON.parse(toolData.tool_data);
@@ -83,7 +83,6 @@ export function ApplicationStateProvider({children}){
8383
} catch (error) {
8484
let errorMsg = gettext(error?.response?.data?.errormsg || error);
8585
console.warn(errorMsg);
86-
pgAdmin.Browser.notifier.pgRespErrorNotify(errorMsg);
8786
return null;
8887
}
8988
}
@@ -113,4 +112,4 @@ export function ApplicationStateProvider({children}){
113112

114113
ApplicationStateProvider.propTypes = {
115114
children: PropTypes.object,
116-
};
115+
};

0 commit comments

Comments
 (0)