Fixed an issue where pgAdmin stuck while creating a new index. Fixes #7460

This commit is contained in:
Nikhil Mohite
2022-06-22 17:38:07 +05:30
committed by Akshay Joshi
parent d90b2621da
commit 74f7fee8b5
2 changed files with 4 additions and 2 deletions

View File

@@ -32,4 +32,5 @@ Bug fixes
| `Issue #7441 <https://redmine.postgresql.org/issues/7441>`_ - Ensure that the Query Editor should be focused when switching between query tool tabs.
| `Issue #7443 <https://redmine.postgresql.org/issues/7443>`_ - Fixed and issue where 'Use spaces' not working in the query tool.
| `Issue #7453 <https://redmine.postgresql.org/issues/7453>`_ - Fixed an issue where the Database restriction is not working.
| `Issue #7460 <https://redmine.postgresql.org/issues/7460>`_ - Fixed an issue where pgAdmin stuck while creating a new index.
| `Issue #7468 <https://redmine.postgresql.org/issues/7468>`_ - Skip the history records if the JSON info can't be parsed instead of showing 'No history'.

View File

@@ -321,10 +321,11 @@ export default class IndexSchema extends BaseUISchema {
};
});
};
if(state.amname != actionObj.oldState.amname) {
if((state.amname != actionObj.oldState.amname) && state.columns.length > 0) {
return new Promise((resolve)=>{
Notify.confirm(
gettext('Changing access method will clear columns collection'),
gettext('Warning'),
gettext('Changing access method will clear columns collection. Do you want to continue?'),
function () {
setColumns(resolve);
},