diff --git a/spiffworkflow-frontend/src/components/TaskListTable.tsx b/spiffworkflow-frontend/src/components/TaskListTable.tsx index 4c780f6f5..6f1378abb 100644 --- a/spiffworkflow-frontend/src/components/TaskListTable.tsx +++ b/spiffworkflow-frontend/src/components/TaskListTable.tsx @@ -141,7 +141,7 @@ export default function TaskListTable({ // TODO: move this and the code from TaskShow to new component to handle instructions and manual tasks let formUiSchema; let jsonSchema = formSubmissionTask.form_schema; - if (formSubmissionTask.typename === 'ManualTask') { + if (formSubmissionTask.typename !== 'UserTask') { jsonSchema = { type: 'object', required: [], diff --git a/spiffworkflow-frontend/src/helpers.tsx b/spiffworkflow-frontend/src/helpers.tsx index d70837ccf..f102c3dba 100644 --- a/spiffworkflow-frontend/src/helpers.tsx +++ b/spiffworkflow-frontend/src/helpers.tsx @@ -25,6 +25,7 @@ export const HUMAN_TASK_TYPES = [ 'Manual Task', 'UserTask', 'ManualTask', + 'Task', ]; export const underscorizeString = (inputString: string) => { diff --git a/spiffworkflow-frontend/src/routes/TaskShow.tsx b/spiffworkflow-frontend/src/routes/TaskShow.tsx index 82ebac664..898971dcd 100644 --- a/spiffworkflow-frontend/src/routes/TaskShow.tsx +++ b/spiffworkflow-frontend/src/routes/TaskShow.tsx @@ -102,7 +102,7 @@ export default function TaskShow() { // https://github.com/sartography/spiff-arena/blob/182f56a1ad23ce780e8f5b0ed00efac3e6ad117b/spiffworkflow-frontend/src/routes/TaskShow.tsx#L329 const autoSaveTaskData = (formData: any, successCallback?: Function) => { // save-draft gets called when a manual task form loads but there's no data to save so don't do it - if (taskWithTaskData?.typename === 'ManualTask') { + if (['ManualTask', 'Task'].includes(taskWithTaskData?.typename || '')) { return undefined; } let successCallbackToUse = successCallback; @@ -240,7 +240,7 @@ export default function TaskShow() { let formUiSchema; let jsonSchema = taskWithTaskData.form_schema; let reactFragmentToHideSubmitButton = null; - if (taskWithTaskData.typename === 'ManualTask') { + if (taskWithTaskData.typename !== 'UserTask') { jsonSchema = { type: 'object', required: [],