mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Ensure errorModel unset property properly in while adding a new server. Fixes #1786
This commit is contained in:
parent
a91f19a21d
commit
e4d870cbe6
@ -1573,6 +1573,7 @@
|
||||
// After validation we need to set that value into model (only if all flags are true)
|
||||
if (isValid) {
|
||||
this.stopListening(this.model, "change:" + name, this.render);
|
||||
this.model.errorModel.unset(name);
|
||||
this.model.set(name, value);
|
||||
this.listenTo(this.model, "change:" + name, this.render);
|
||||
} else {
|
||||
@ -1666,6 +1667,7 @@
|
||||
// After validation we need to set that value into model (only if all flags are true)
|
||||
if (isValid) {
|
||||
this.stopListening(this.model, "change:" + name, this.render);
|
||||
this.model.errorModel.unset(name);
|
||||
this.model.set(name, value);
|
||||
this.listenTo(this.model, "change:" + name, this.render);
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user