mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
feat: reason is added to the email
This commit is contained in:
@ -34,7 +34,7 @@ export const DeleteDocumentDialog = ({ document }: DeleteDocumentDialogProps) =>
|
||||
|
||||
const handleDeleteDocument = async () => {
|
||||
try {
|
||||
await deleteDocument({ id: document.id, userId: document.userId });
|
||||
await deleteDocument({ id: document.id, userId: document.userId, reason });
|
||||
toast({
|
||||
title: 'Document deleted',
|
||||
description: 'The Document has been deleted successfully.',
|
||||
|
||||
Reference in New Issue
Block a user