Closed mattwr18 closed 1 month ago
After adding pagination to contributors index page in https://github.com/tactilenews/100eyes/pull/1809 the requests index does not render with error:
This is due to the fact that if the query param is not passed in, it is not initializing with an empty hash as I understood, but instead with nil so calling the method select on nil throws an error and prevents the page from loading.
query
select
After adding pagination to contributors index page in https://github.com/tactilenews/100eyes/pull/1809 the requests index does not render with error:
This is due to the fact that if the
query
param is not passed in, it is not initializing with an empty hash as I understood, but instead with nil so calling the methodselect
on nil throws an error and prevents the page from loading.