From a49c580c9e0b59d181024f06edc6a1963aa47e0b Mon Sep 17 00:00:00 2001 From: Aaron Chong Date: Fri, 19 Jul 2024 14:19:15 +0000 Subject: [PATCH] Fix for getting task definition id from labels Signed-off-by: Aaron Chong --- .../react-components/lib/tasks/task-booking-label-utils.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-components/lib/tasks/task-booking-label-utils.tsx b/packages/react-components/lib/tasks/task-booking-label-utils.tsx index ee5b9a095..80582229f 100644 --- a/packages/react-components/lib/tasks/task-booking-label-utils.tsx +++ b/packages/react-components/lib/tasks/task-booking-label-utils.tsx @@ -20,5 +20,5 @@ export function getTaskBookingLabelFromTaskRequest( } export function getTaskDefinitionId(labels: TaskBookingLabels): string | null { - return labels.task_definition_id || null; + return labels['task_definition_id'] || null; }