From 28f6992085eeedbc352dcd04de08529ee137ce62 Mon Sep 17 00:00:00 2001 From: Mikunj Date: Mon, 5 Nov 2018 16:38:51 +1100 Subject: [PATCH] Replaced var with const. --- js/views/conversation_search_view.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/views/conversation_search_view.js b/js/views/conversation_search_view.js index 871b4d559..98ba719c2 100644 --- a/js/views/conversation_search_view.js +++ b/js/views/conversation_search_view.js @@ -87,7 +87,7 @@ // Check if the query is in the model list // If it is then hide the new contact view - var 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(); }) );