mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2024-12-01 12:24:28 +01:00
(bug) category slug with special characters
This commit is contained in:
parent
4cfb1a1253
commit
f3a2136e7d
@ -54,7 +54,7 @@ export const ProductCategoryForm: React.FC<ProductCategoryFormProps> = ({ action
|
||||
useEffect(() => {
|
||||
const subscription = watch((value, { name }) => {
|
||||
if (name === 'name') {
|
||||
const _slug = slugify(value.name, { lower: true });
|
||||
const _slug = slugify(value.name, { lower: true, strict: true });
|
||||
setValue('slug', _slug);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user