From 0cf32b4868f9585be04f4cb770d0bce8a1fc9b0e Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Tue, 29 Aug 2023 22:57:18 +0200 Subject: [PATCH] fix edition from initial tasks --- src/modules/task/components/TaskForm.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/task/components/TaskForm.vue b/src/modules/task/components/TaskForm.vue index 794871b..42f4fad 100644 --- a/src/modules/task/components/TaskForm.vue +++ b/src/modules/task/components/TaskForm.vue @@ -49,7 +49,7 @@ const exampleSteps: Stepable[] = [ ] const steps = ref( - props.initialTask?.steps ?? hasTasks.value ? [] : exampleSteps + props.initialTask?.steps ?? (hasTasks.value ? [] : exampleSteps) ) const title = ref(props.initialTask?.title ?? '')