fix: updates from review

This commit is contained in:
Mythie
2023-12-21 20:42:45 +11:00
parent 298396c86c
commit 7babd82470
10 changed files with 37 additions and 20 deletions

View File

@ -58,11 +58,13 @@ export const TemplatesDataTable = ({
const { id } = await createDocumentFromTemplate({
templateId,
});
toast({
title: 'Document created',
description: 'Your document has been created from the template successfully.',
duration: 5000,
});
router.push(`/documents/${id}`);
} catch (err) {
toast({