Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Show the error inline

Manav Rathib2100c1e1fe0
diff --git a/web/packages/new/photos/components/gallery/PeopleHeader.tsx b/web/packages/new/photos/components/gallery/PeopleHeader.tsx
index 7cd148506f..dc8394a9b1 100644
--- a/web/packages/new/photos/components/gallery/PeopleHeader.tsx
+++ b/web/packages/new/photos/components/gallery/PeopleHeader.tsx
@@ -15,7 +15,6 @@ import { useAppContext } from "../../types/context";
import { AddPersonDialog } from "../AddPersonDialog";
import { SpaceBetweenFlex } from "../mui";
import { SingleInputDialog } from "../SingleInputForm";
-import { useWrapAsyncOperation } from "../use-wrap-async";
import type { GalleryBarImplProps } from "./BarImpl";
import { GalleryItemsHeaderAdapter, GalleryItemsSummary } from "./ListHeader";
@@ -83,9 +82,7 @@ const CGroupPersonHeader: React.FC<CGroupPersonHeaderProps> = ({
const { show: showNameInput, props: nameInputVisibilityProps } =
useModalVisibility();
- const handleRename = useWrapAsyncOperation((name: string) =>
- renameCGroup(cgroup, name),
- );
+ const handleRename = (name: string) => renameCGroup(cgroup, name);
const handleReset = () =>
showMiniDialog({