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

@@ -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);
},