Skip to content

Commit

Permalink
Fix custom compose failing check due to empty string
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
  • Loading branch information
aaronchongth committed Aug 1, 2024
1 parent 9a454d6 commit a88c326
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-components/lib/tasks/create-task.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ export function CreateTaskForm({
if (req === null) {
console.error(`Failed to create task request for definition ID: [${definitionId}]`);
}
if (desc && req) {
if (desc !== undefined && req !== null) {
validTasks.push(supportedTask);

if (!defaultTaskDescription && !defaultTaskRequest) {
Expand Down

0 comments on commit a88c326

Please sign in to comment.