Describe the bug
Creating a category with a name consisting only of spaces is possible, which should not be allowed. This category appears in the list of categories, but clicking on it is not possible. As a result, there is no way to enter the category editing mode without resorting to HTML code. A similar issue occurs on the storefront when setting the category as visible.
To Reproduce
Steps to reproduce the behavior:
- Go to the category creator (Admin panel -> Categories -> New Categories).
- Enter a required data but category name consisting only of spaces.
- Save the category.
- Navigate to the list of categories and observe the created category.
- Attempt to click on the category.
Expected behavior
Creating a category with a name consisting only of spaces should be prevented.
Screenshots


categoryPanel.webm
Background:
- NodeJS 20.11.0
- Postgres 13.12 (as Docker Container)
- ShopMost 1d95be0 (last working)
- OS: Ubuntu 22.04
- Browser Opera, Firefox
Describe the bug
Creating a category with a name consisting only of spaces is possible, which should not be allowed. This category appears in the list of categories, but clicking on it is not possible. As a result, there is no way to enter the category editing mode without resorting to HTML code. A similar issue occurs on the storefront when setting the category as visible.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Creating a category with a name consisting only of spaces should be prevented.
Screenshots


categoryPanel.webm
Background: