Comment out navigation to tasks after successful form submission in TaskFormPage to prevent unintended redirects during testing.
This commit is contained in:
@@ -130,7 +130,7 @@ export const TaskFormPage: React.FC = () => {
|
||||
type: 'success',
|
||||
})
|
||||
}
|
||||
navigate(URLs.tasks)
|
||||
// navigate(URLs.tasks)
|
||||
} catch (err: unknown) {
|
||||
const errorMessage =
|
||||
(err && typeof err === 'object' && 'data' in err &&
|
||||
|
||||
Reference in New Issue
Block a user