feat: corrected the document redirection after delete

This commit is contained in:
Rohit Saluja
2024-03-13 11:15:06 +05:30
parent 487bc026f9
commit 35c1b0bcee

View File

@ -40,7 +40,7 @@ export const DeleteDocumentDialog = ({ document }: DeleteDocumentDialogProps) =>
description: 'The Document has been deleted successfully.',
duration: 5000,
});
router.push('admin/documents');
router.push('/admin/documents');
} catch (err) {
if (err instanceof TRPCClientError && err.data?.code === 'BAD_REQUEST') {
toast({