mirror of
https://github.com/umami-software/umami.git
synced 2026-02-08 06:37:18 +01:00
add modified to useTeamMembers, fix website delete
This commit is contained in:
parent
f9f67264a5
commit
87a18dc570
3 changed files with 5 additions and 2 deletions
|
|
@ -49,6 +49,7 @@ export function ReportDeleteButton({
|
|||
error={error}
|
||||
onConfirm={handleConfirm.bind(null, close)}
|
||||
onClose={close}
|
||||
buttonLabel={formatMessage(labels.delete)}
|
||||
/>
|
||||
)}
|
||||
</Modal>
|
||||
|
|
|
|||
|
|
@ -15,7 +15,7 @@ export function WebsiteDeleteForm({
|
|||
const { formatMessage, labels } = useMessages();
|
||||
const { del, useMutation } = useApi();
|
||||
const { mutate, isPending, error } = useMutation({
|
||||
mutationFn: (data: any) => del(`/websites/${websiteId}`, data),
|
||||
mutationFn: () => del(`/websites/${websiteId}`),
|
||||
});
|
||||
|
||||
const handleConfirm = async () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue