Don't double-render key conflict errors
// FREEBIE
This commit is contained in:
parent
7ec4700431
commit
b42626923c
1 changed files with 4 additions and 1 deletions
|
@ -10,7 +10,10 @@
|
||||||
templateName: 'contact-detail',
|
templateName: 'contact-detail',
|
||||||
initialize: function(options) {
|
initialize: function(options) {
|
||||||
this.conflict = options.conflict;
|
this.conflict = options.conflict;
|
||||||
this.errors = options.errors;
|
this.errors = _.reject(options.errors, function(e) {
|
||||||
|
return (e.name === 'IncomingIdentityKeyError' ||
|
||||||
|
e.name === 'OutgoingIdentityKeyError');
|
||||||
|
});
|
||||||
},
|
},
|
||||||
events: {
|
events: {
|
||||||
'click .conflict': 'triggerConflict'
|
'click .conflict': 'triggerConflict'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue