Skip to content

Commit

Permalink
Merge pull request #559 from factly/fix/select-query
Browse files Browse the repository at this point in the history
fix search query in selector component
  • Loading branch information
shreeharsha-factly authored May 20, 2022
2 parents 3b2fdd3 + 8af5b0e commit cc0dd7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion studio/src/components/Selector/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function Selector({
const onSearch = (value) => {
if (value) {
setSearchValue(value);
setQuery({ ...query, q: value });
setQuery({ q: value, page: 1, limit: 5 });
} else {
setSearchValue('');
setQuery({ page: query.page });
Expand Down

0 comments on commit cc0dd7c

Please sign in to comment.