mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Recreate the node item in the tree, when 'id' has been changed of the node.
Fixes #5053
This commit is contained in:
@@ -1660,16 +1660,16 @@ define('pgadmin.browser', [
|
||||
}
|
||||
|
||||
// If server icon/background changes then also we need to re-create it
|
||||
if(_old._type == 'server' && _new._type == 'server' &&
|
||||
( _old._pid != _new._pid ||
|
||||
if ((
|
||||
_old._type == 'server' && _new._type == 'server' && (
|
||||
_old._pid != _new._pid ||
|
||||
_old._label != _new._label ||
|
||||
_old.icon != _new.icon )
|
||||
_old.icon != _new.icon
|
||||
)) || _old._pid != _new._pid || _old._label != _new._label ||
|
||||
_old._id != _new._id
|
||||
) {
|
||||
ctx.op = 'RECREATE';
|
||||
traversePath();
|
||||
} else if (_old._pid != _new._pid || _old._label != _new._label) {
|
||||
ctx.op = 'RECREATE';
|
||||
traversePath();
|
||||
} else {
|
||||
ctx.op = 'UPDATE';
|
||||
traversePath();
|
||||
|
||||
Reference in New Issue
Block a user