From 3ee9595cf5ccfed57d119d2d34abbd9c8b491840 Mon Sep 17 00:00:00 2001 From: nofurtherinformation Date: Tue, 15 Oct 2024 10:22:00 -0500 Subject: [PATCH] Swap onClick for onSelect https://github.com/districtr/districtr-v2/pull/84/files/1c855645d4aac41494c3e5a33ea9b09294b3c2be#r1799832575 --- app/src/app/components/ContextMenu.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/src/app/components/ContextMenu.tsx b/app/src/app/components/ContextMenu.tsx index f095703f..ed1a04f8 100644 --- a/app/src/app/components/ContextMenu.tsx +++ b/app/src/app/components/ContextMenu.tsx @@ -7,7 +7,8 @@ export const MapContextMenu: React.FC = () => { const contextMenu = useMapStore((state) => state.contextMenu); const handleShatter = useMapStore((state) => state.handleShatter); if (!contextMenu) return null; - const onClick = () => { + + const handleSelect = () => { if (!mapDocument || contextMenu?.data?.id === undefined) return; handleShatter(mapDocument.document_id, [contextMenu.data.id.toString()]); contextMenu.close(); @@ -40,7 +41,7 @@ export const MapContextMenu: React.FC = () => { )} Shatter