Skip to content

Commit e7bc1b7

Browse files
authored
fix: Sorting error in tool workflow execution details (#5072)
1 parent ced629e commit e7bc1b7

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ui/src/views/tool-workflow/execution-record/ExecutionDetailDrawer.vue

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,13 @@
172172
{{ $t('chat.executionDetails.title') }}
173173
</h5>
174174
<div class="p-8-12 border-t-dashed lighter">
175-
<template v-for="(cLoop, cIndex) in detail?.meta?.details" :key="cIndex">
175+
<template
176+
v-for="(cLoop, cIndex) in arraySort(
177+
Object.values(detail?.meta?.details ?? {}) ?? [],
178+
'index',
179+
)"
180+
:key="cIndex"
181+
>
176182
<ExecutionDetailCard :data="cLoop"></ExecutionDetailCard>
177183
</template>
178184
</div>
@@ -202,6 +208,7 @@ import { isAppIcon, resetUrl } from '@/utils/common'
202208
import { datetimeFormat } from '@/utils/time'
203209
import { loadSharedApi } from '@/utils/dynamics-api/shared-api.ts'
204210
import ExecutionDetailCard from '@/components/execution-detail-card/index.vue'
211+
import { arraySort } from '@/utils/array'
205212
const props = withDefaults(
206213
defineProps<{
207214
/**

0 commit comments

Comments
 (0)