Description
In the catalog module, it is possible to put 0 in the "Show per page" bar. Application the shows either Infinity or NaN depending on if there is any element in the catalog. This bug is present in all submodules (products, categories, collections, attributes).
To Reproduce
Steps to reproduce the behavior:
- Go to '/admin/products' or any other submodule of catalog.
- Input 0 into 'Show per page'.
- All elements disappear and there is Infinitely many pages (or NaN).
Expected behavior
Application should not let user put 0 into the box.
Screenshots


Background (please complete the following information):
- NodeJS 20.10.0
- Postgres 13.12
- ShopMost v1.0.1

- OS: Ubuntu 22.04
- Browser Chromium
Description
In the catalog module, it is possible to put 0 in the "Show per page" bar. Application the shows either Infinity or NaN depending on if there is any element in the catalog. This bug is present in all submodules (products, categories, collections, attributes).
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Application should not let user put 0 into the box.
Screenshots


Background (please complete the following information):