Fix treeview state saving after reset.

This commit is contained in:
Khushboo Vashi 2019-02-18 13:15:22 +00:00 committed by Dave Page
parent 255afe673a
commit 554455fa75

View File

@ -69,7 +69,7 @@ _.extend(pgBrowser.browserTreeState, {
this.remove_from_cache, this);
pgBrowser.Events.on('pgadmin:browser:tree:update-tree-state',
this.update_cache, this);
} else {
} else if (!_.isUndefined(save_tree_state_period)) {
$.ajax({
url: url_for('settings.reset_tree_state'),
type: 'DELETE',