From 97b456930e9662071770fe9aebef5ff53a8f2100 Mon Sep 17 00:00:00 2001 From: Joana Maia Date: Wed, 21 Dec 2022 11:59:30 +0000 Subject: [PATCH] Fix assignees and members map for null values --- frontend/src/modules/task/components/task-form.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/modules/task/components/task-form.vue b/frontend/src/modules/task/components/task-form.vue index a95de2558d..749718b678 100644 --- a/frontend/src/modules/task/components/task-form.vue +++ b/frontend/src/modules/task/components/task-form.vue @@ -344,12 +344,12 @@ const fillForm = () => { name: props.task.name, body: props.task.body, members: - props.task.members.map((m) => ({ + props.task.members?.map((m) => ({ ...m, label: m.displayName })) || [], assignees: - props.task.assignees.map((a) => ({ + props.task.assignees?.map((a) => ({ ...a, label: a.fullName })) || [],