Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
barbalex committed Nov 28, 2024
1 parent 5598dfd commit a847656
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/components/Projekte/Daten/Ekzaehleinheit/Menu.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down Expand Up @@ -79,7 +79,7 @@ export const Menu = memo(
}
}
`,
variables: { id: row.id },
variables: { id: zaehleinheitId },
})
} catch (error) {
return store.enqueNotification({
Expand Down Expand Up @@ -116,7 +116,7 @@ export const Menu = memo(
search,
apId,
projId,
row,
zaehleinheitId,
pathname,
])

Expand Down
2 changes: 1 addition & 1 deletion src/components/Projekte/Daten/Ekzaehleinheit/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export const Component = memo(
<Container>
<FormTitle
title="EK-Zähleinheit"
menuBar={<Menu row={row} />}
menuBar={<Menu />}
/>
<FormContainer>
<Select
Expand Down

0 comments on commit a847656

Please sign in to comment.