Don't double-render key conflict errors
// FREEBIE
This commit is contained in:
@@ -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'
|
||||||
|
Reference in New Issue
Block a user