Created
April 17, 2020 17:47
-
-
Save bosz/30b124e763aa9c798f4f7e23ca1d31e4 to your computer and use it in GitHub Desktop.
Digital Renter navigation bar component
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Please, update Line 52 to line 62 (handling the query) to | |
if (query) { | |
inboxes = inboxes.filter(inbox => { | |
let {headline, id} = inbox; | |
let client_name = inbox.client ? inbox.client.name : headline; | |
if (id == query || headline.includes(query) || client_name.includes(query) ) { | |
return true; | |
}else{ | |
return false; | |
} | |
}) | |
} | |
// Changed sender to client and sender_name to client_name |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment