filter search suggestions so the search query isn't suggested twice #32

Merged
neb-b merged 1 commit from search into master 2018-05-29 21:58:05 +02:00
neb-b commented 2018-05-25 07:19:17 +02:00 (Migrated from github.com)

If the search suggestion api returns a query that is the same as the one the user typed in the search bar, we should remove it so there aren't two identical search suggestions.

Fixes https://github.com/lbryio/lbry-app/issues/1495

If the search suggestion api returns a query that is the same as the one the user typed in the search bar, we should remove it so there aren't two identical search suggestions. Fixes https://github.com/lbryio/lbry-app/issues/1495
skhameneh (Migrated from github.com) reviewed 2018-05-25 07:19:17 +02:00
neb-b (Migrated from github.com) reviewed 2018-05-25 07:21:36 +02:00
@ -115,4 +110,3 @@
});
} catch (e) {
suggestions.push({
value: query,
neb-b (Migrated from github.com) commented 2018-05-25 07:21:36 +02:00

We were dispatching twice with the same data. Don't need this

We were dispatching twice with the same data. Don't need this
akinwale (Migrated from github.com) approved these changes 2018-05-25 12:15:40 +02:00
akinwale (Migrated from github.com) left a comment

Looks good.

Looks good.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-redux#32
No description provided.