Umami is a privacy-first web and product analytics platform. Traffic, campaigns, behavior, conversions, and revenue in one place. No cookies, no surveillance, self-hosted or in the cloud.
TypeScript analyticsaudience-segmentationchartscohort-analysisgoogle-analyticsproduct-analyticsstatisticsuser-journeyweb-analytics
Fixed mutate.
Mike Cao905b480c131a
diff --git a/src/app/(main)/reports/ReportDeleteButton.tsx b/src/app/(main)/reports/ReportDeleteButton.tsxindex d3f1bb4f3..32ec819e4 100644--- a/src/app/(main)/reports/ReportDeleteButton.tsx+++ b/src/app/(main)/reports/ReportDeleteButton.tsx@@ -14,7 +14,7 @@ export function ReportDeleteButton({}) {const { formatMessage, labels } = useMessages();const { del, useMutation } = useApi();- const { mutate } = useMutation(reportId => del(`/reports/${reportId}`));+ const { mutate } = useMutation({ mutationFn: reportId => del(`/reports/${reportId}`) });const handleConfirm = (close: () => void) => {mutate(reportId as any, {