diff --git a/spiffworkflow-frontend/src/routes/TaskShow.tsx b/spiffworkflow-frontend/src/routes/TaskShow.tsx index 3cddc676..e8ec096d 100644 --- a/spiffworkflow-frontend/src/routes/TaskShow.tsx +++ b/spiffworkflow-frontend/src/routes/TaskShow.tsx @@ -267,6 +267,7 @@ export default function TaskShow() { formData: any, errors: any ) => { + console.log('errors', errors); if ('properties' in jsonSchema) { Object.keys(jsonSchema.properties).forEach((propertyKey: string) => { const propertyMetadata = jsonSchema.properties[propertyKey]; diff --git a/spiffworkflow-frontend/src/themes/carbon/SelectWidget/SelectWidget.tsx b/spiffworkflow-frontend/src/themes/carbon/SelectWidget/SelectWidget.tsx index 6f55ef1b..10204145 100644 --- a/spiffworkflow-frontend/src/themes/carbon/SelectWidget/SelectWidget.tsx +++ b/spiffworkflow-frontend/src/themes/carbon/SelectWidget/SelectWidget.tsx @@ -60,11 +60,8 @@ function SelectWidget({ // this change causes chrome to also show the first option. now all browsers are consistent on our site. you no longer have to select anything. // setting the value prop causes it to show the first option. // calling onChange actually gets it set in the form data. - if (value === undefined) { - if (enumOptions) { - value = enumOptions[0].value; - onChange(value); - } + if (enumOptions && enumOptions[0].value !== '') { + enumOptions.unshift({ value: '', label: '' }); } // maybe use placeholder somehow. it was previously jammed into the helperText field,