clear editing group name

This commit is contained in:
Josh Hawkins 2024-09-12 15:58:39 -05:00
parent 5df309cd57
commit eb600fa1dd

View File

@ -378,7 +378,13 @@ function NewGroupDialog({
{editState != "none" && (
<>
<Header className="mt-2" onClose={() => setEditState("none")}>
<Header
className="mt-2"
onClose={() => {
setEditState("none");
setEditingGroupName("");
}}
>
<Title>
{editState == "add" ? "Add" : "Edit"} Camera Group
</Title>