mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-01 21:04:52 +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",
|
"masksAndZones.form.zoneName.error.mustBeAtLeastTwoCharacters",
|
||||||
),
|
),
|
||||||
})
|
})
|
||||||
.transform((val: string) => val.trim().replace(/\s+/g, "_"))
|
|
||||||
.refine(
|
.refine(
|
||||||
(value: string) => {
|
(value: string) => {
|
||||||
return !cameras.map((cam) => cam.name).includes(value);
|
return !cameras.map((cam) => cam.name).includes(value);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user