If the form object is undefined, navigate to tasks (#247)
This commit is contained in:
parent
7b190d204b
commit
be5dd0fe4c
|
@ -176,6 +176,9 @@ export default function TaskShow() {
|
|||
if (disabled) {
|
||||
return;
|
||||
}
|
||||
if (!formObject) {
|
||||
navigate(`/tasks`);
|
||||
}
|
||||
let queryParams = '';
|
||||
if (submitType === FormSubmitType.Draft) {
|
||||
queryParams = '?save_as_draft=true';
|
||||
|
|
Loading…
Reference in New Issue