diff --git a/web/src/components/filter/CameraGroupSelector.tsx b/web/src/components/filter/CameraGroupSelector.tsx
index 71e580cbc..d1a34ed6d 100644
--- a/web/src/components/filter/CameraGroupSelector.tsx
+++ b/web/src/components/filter/CameraGroupSelector.tsx
@@ -291,6 +291,7 @@ function NewGroupDialog({
const onSave = () => {
setOpen(false);
setEditState("none");
+ setEditingGroupName("");
};
const onCancel = () => {
@@ -325,41 +326,44 @@ function NewGroupDialog({
>
-
- {editState === "none" && (
- <>
-
setOpen(false)}>
- Camera Groups
-
- Edit camera groups
-
-
+
+
{currentGroups.map((group) => (
onEditGroup(group)}
/>
))}
- >
- )}
+
+ >
+ )}
- {editState != "none" && (
- <>
-
setEditState("none")}>
-
- {editState == "add" ? "Add" : "Edit"} Camera Group
-
-
- Edit camera groups
-
-
-
- >
- )}
-
+ {editState != "none" && (
+ <>
+ setEditState("none")}>
+
+ {editState == "add" ? "Add" : "Edit"} Camera Group
+
+
+ Edit camera groups
+
+
+
+ >
+ )}
>
@@ -449,7 +453,7 @@ export function EditGroupDialog({
>
setOpen(false)}>
- Edit Camera Group
+ Edit Camera Group
Edit camera group
@@ -489,7 +493,7 @@ export function CameraGroupRow({
<>