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 e8a9f55 commit fab547a
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/Ziel/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, jahr } = useParams()
const { projId, apId, jahr, zielId } = useParams()
const store = useContext(StoreContext)

const onClickAdd = useCallback(async () => {
Expand Down Expand Up @@ -76,7 +76,7 @@ export const Menu = memo(
}
}
`,
variables: { id: row.id },
variables: { id: zielId },
})
} catch (error) {
return store.enqueNotification({
Expand Down Expand Up @@ -110,7 +110,7 @@ export const Menu = memo(
search,
apId,
projId,
row,
zielId,
pathname,
])

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

0 comments on commit fab547a

Please sign in to comment.