mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue where pgAdmin stuck while creating a new index. Fixes #7460
This commit is contained in:
committed by
Akshay Joshi
parent
d90b2621da
commit
74f7fee8b5
@@ -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);
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user