Changed == to ===

pull/25/head
Mikunj 7 years ago
parent 28f6992085
commit 61d15fdd57

@ -87,7 +87,7 @@
// Check if the query is in the model list // Check if the query is in the model list
// If it is then hide the new contact view // If it is then hide the new contact view
const modelExists = this.typeahead_view.collection.find(item => item.get('id') == query); const modelExists = this.typeahead_view.collection.find(item => item.get('id') === query);
if (modelExists) this.new_contact_view.$el.hide(); if (modelExists) this.new_contact_view.$el.hide();
}) })
); );

Loading…
Cancel
Save