Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom task type support, refactor tasks to be singular, cleaned up #903

Merged
merged 9 commits into from
Mar 13, 2024
Original file line number Diff line number Diff line change
Expand Up @@ -167,11 +167,11 @@ export const apiScheduleToSchedule = (scheduleTask: ApiSchedule[]): Schedule =>
};

export const getScheduledTaskTitle = (task: ScheduledTask): string => {
if (!task.task_request || !task.task_request.category) {
const shortDescription = getShortDescription(task.task_request);
if (!task.task_request || !task.task_request.category || !shortDescription) {
return `[${task.id}] Unknown`;
}

return `${getShortDescription(task.task_request)}`;
return shortDescription;
};

// Pad a number to 2 digits
Expand Down
Loading
Loading