mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 00:03:33 +10:00
feat: updated the condition of the delete dialog in the detail page
This commit is contained in:
@ -85,7 +85,7 @@ export default async function AdminDocumentDetailsPage({ params }: AdminDocument
|
||||
|
||||
<hr className="my-4" />
|
||||
|
||||
{document && <DeleteDocumentDialog document={document} />}
|
||||
{document && !document.deletedAt && <DeleteDocumentDialog document={document} />}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user