Skip to content

Pagination: Pagination disappears #344

@jrcastro2

Description

@jrcastro2

Package version (if known): v1.0.0-alpha.24

Describe the bug

Pagination dissapears if we do these 2 steps:

  1. We search for a field and we don't hit any result.
  2. We clean the searchbar and hit enter. (If we click "clear search" it doesn't happen).

If we inspect the url we will notice that the s=15 param disappeared.

Steps to Reproduce

  1. Go to documents.
  2. Click on any of the "search by " options.
  3. Search by a value that will not hit any result, example: authors.full_name:"Doe, Johna" .
  4. Clean the search bar and hit enter.
  5. Notice the pagination item disappeared and the url no longer has the param s=15.

Expected behavior

Pagination item should be displayed anyway.

Screenshots (if applicable)

Before (without bug)

image

After (with bug)

image

Additional context

Metadata

Metadata

Labels

bugSomething isn't workingmajor

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions