Subflows logs are not displayed in parent gantt & logs
### Expected Behavior

_No response_

### Actual Behaviour

_No response_

### Steps To Reproduce

_No response_

### Environment Information

- Kestra Version: 0.10.0-SNAPSHOT
- Operating System (OS / Docker / Kubernetes):
- Java Version (If not docker):


### Example flow

_No response_
ui/src/components/executions/Logs.vue ui/src/components/logs/LogList.vue
ui/src/components/executions/Logs.vue ui/src/components/logs/LogList.vue
diff --git a/ui/src/components/executions/Logs.vue b/ui/src/components/executions/Logs.vue
index 403b9aaa9a..1597cc6222 100644
--- a/ui/src/components/executions/Logs.vue
+++ b/ui/src/components/executions/Logs.vue
@@ -101,7 +101,7 @@
             taskRunList() {
                 const fullList = [];
                 for (const taskRun of (this.execution.taskRunList || [])) {
-                    for (const attempt in taskRun.attempts) {
+                    for (const attempt in (taskRun.attempts ?? [{}])) {
                         fullList.push({
                             ...taskRun,
                             attempt: parseInt(attempt),
diff --git a/ui/src/components/logs/LogList.vue b/ui/src/components/logs/LogList.vue
index b9f7d68074..3a28a6ca38 100644
--- a/ui/src/components/logs/LogList.vue
+++ b/ui/src/components/logs/LogList.vue
@@ -459,7 +459,11 @@
                 }
             },
             attempts(taskRun) {
-                return this.execution.state.current === State.RUNNING || !this.attemptNumber ? taskRun.attempts : [taskRun.attempts[this.attemptNumber]] ;
+                if (this.execution.state.current === State.RUNNING || !this.attemptNumber) {
+                    return taskRun.attempts ?? [{state: taskRun.state}];
+                }
+
+                return [taskRun.attempts[this.attemptNumber]];
             },
             onTaskSelect(dropdownVisible, task) {
                 if (dropdownVisible && this.taskRun?.id !== task.id) {
