chore: fix the issue where the friendly name would replace spaces with underscores

This commit is contained in:
ZhaiSoul 2025-11-04 12:56:53 +00:00
parent 894f9d06dd
commit 136836fe86

View File

@ -155,7 +155,6 @@ export default function ZoneEditPane({
"masksAndZones.form.zoneName.error.mustBeAtLeastTwoCharacters",
),
})
.transform((val: string) => val.trim().replace(/\s+/g, "_"))
.refine(
(value: string) => {
return !cameras.map((cam) => cam.name).includes(value);