Report parameters.

This commit is contained in:
Mike Cao 2023-06-14 23:48:11 -07:00
parent b10b490088
commit e7fef80d79
4 changed files with 9 additions and 17 deletions

View file

@ -25,8 +25,8 @@ export function ReportHeader({ icon }) {
if (!report.id) {
create(report, {
onSuccess: async ({ id }) => {
router.push(`/reports/${id}`, null, { shallow: true });
showToast({ message: formatMessage(messages.saved), variant: 'success' });
router.push(`/reports/${id}`, null, { shallow: true });
},
});
} else {