RockefellerArchiveCenter/dimes

Searches without query strings never complete

Closed this issue · 0 comments

Describe the bug

Searches without query strings are never actually executed.

Expected behavior

Searches without a query string should throw an error.

Additional context

This hook needs an else side: https://github.com/ulsdevteam/dimes/blob/900713ad9c02f6c9049a16ea3393998673538c8e/src/components/PageSearch/index.js#L93-L105

Also remove check here: https://github.com/ulsdevteam/dimes/blob/900713ad9c02f6c9049a16ea3393998673538c8e/src/components/PageSearch/index.js#L185-L186