mirror of
https://github.com/umami-software/umami.git
synced 2026-02-13 00:55:37 +01:00
Fixed mutate.
This commit is contained in:
parent
a4f8ab6ad9
commit
905b480c13
1 changed files with 1 additions and 1 deletions
|
|
@ -14,7 +14,7 @@ export function ReportDeleteButton({
|
||||||
}) {
|
}) {
|
||||||
const { formatMessage, labels } = useMessages();
|
const { formatMessage, labels } = useMessages();
|
||||||
const { del, useMutation } = useApi();
|
const { del, useMutation } = useApi();
|
||||||
const { mutate } = useMutation(reportId => del(`/reports/${reportId}`));
|
const { mutate } = useMutation({ mutationFn: reportId => del(`/reports/${reportId}`) });
|
||||||
|
|
||||||
const handleConfirm = (close: () => void) => {
|
const handleConfirm = (close: () => void) => {
|
||||||
mutate(reportId as any, {
|
mutate(reportId as any, {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue