mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-03-21 15:48:22 +03:00
chore: fix the issue where the friendly name would replace spaces with underscores
This commit is contained in:
parent
894f9d06dd
commit
136836fe86
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user