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