Skip to content

Empty Search String is sent as a parameter when the search parameter is removed thus not reusing results from cache #1344

@jaywalker21

Description

@jaywalker21

Issue

On any of the screens supporting filtering results via a search bar, if a particular keyword is searched and then reset (i.e. you type some search parameter and then remove it again), a new query is fired which sets the filterBy attribute with value as "".
Owing to this, again a GraphQL call is made to fetch the same results as that of the landing page for that view.

The below parameter is added to the query

{
  filterBy: [{key: "name", operator: LIKE, value: "", type: ATTRIBUTE}]
}

The solution should try to avoid sending this parameter altogether when the search field is empty.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions