feat: updated the condition of the delete dialog in the detail page

This commit is contained in:
Rohit Saluja
2024-03-13 11:40:12 +05:30
parent 364aaa4cb6
commit bba1ea81d6

View File

@ -85,7 +85,7 @@ export default async function AdminDocumentDetailsPage({ params }: AdminDocument
<hr className="my-4" /> <hr className="my-4" />
{document && <DeleteDocumentDialog document={document} />} {document && !document.deletedAt && <DeleteDocumentDialog document={document} />}
</div> </div>
); );
} }