From a8476560782cbf00c71f69c2a1d00f38e15b8649 Mon Sep 17 00:00:00 2001 From: Alexander Gabriel Date: Thu, 28 Nov 2024 18:39:38 +0100 Subject: [PATCH] optimize --- src/components/Projekte/Daten/Ekzaehleinheit/Menu.jsx | 8 ++++---- src/components/Projekte/Daten/Ekzaehleinheit/index.jsx | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Projekte/Daten/Ekzaehleinheit/Menu.jsx b/src/components/Projekte/Daten/Ekzaehleinheit/Menu.jsx index af4e4685a..c0657883e 100644 --- a/src/components/Projekte/Daten/Ekzaehleinheit/Menu.jsx +++ b/src/components/Projekte/Daten/Ekzaehleinheit/Menu.jsx @@ -19,12 +19,12 @@ import { MenuTitle } from '../../../shared/Files/Menu/index.jsx' const iconStyle = { color: 'white' } export const Menu = memo( - observer(({ row }) => { + observer(() => { const { search, pathname } = useLocation() const navigate = useNavigate() const client = useApolloClient() const queryClient = useQueryClient() - const { projId, apId } = useParams() + const { projId, apId, zaehleinheitId } = useParams() const store = useContext(StoreContext) const onClickAdd = useCallback(async () => { @@ -79,7 +79,7 @@ export const Menu = memo( } } `, - variables: { id: row.id }, + variables: { id: zaehleinheitId }, }) } catch (error) { return store.enqueNotification({ @@ -116,7 +116,7 @@ export const Menu = memo( search, apId, projId, - row, + zaehleinheitId, pathname, ]) diff --git a/src/components/Projekte/Daten/Ekzaehleinheit/index.jsx b/src/components/Projekte/Daten/Ekzaehleinheit/index.jsx index fbae1db64..eded95030 100644 --- a/src/components/Projekte/Daten/Ekzaehleinheit/index.jsx +++ b/src/components/Projekte/Daten/Ekzaehleinheit/index.jsx @@ -166,7 +166,7 @@ export const Component = memo( } + menuBar={} />