diff --git a/client/src/components/WorkflowInvocationState/WorkflowInvocationOverview.vue b/client/src/components/WorkflowInvocationState/WorkflowInvocationOverview.vue index 8964c378d440..068c9f0b819b 100644 --- a/client/src/components/WorkflowInvocationState/WorkflowInvocationOverview.vue +++ b/client/src/components/WorkflowInvocationState/WorkflowInvocationOverview.vue @@ -7,6 +7,7 @@ import { getRootFromIndexLink } from "@/onload"; import { type Workflow } from "@/stores/workflowStore"; import { withPrefix } from "@/utils/redirect"; +import { type InvocationMessageResponseModel } from "./invocationMessageModel"; import { errorCount as jobStatesSummaryErrorCount, jobCount as jobStatesSummaryJobCount, @@ -107,8 +108,10 @@ const invocationPdfLink = computed(() => { } }); -const hasMessages = computed(() => { - return props.invocation?.messages.length ? true : false; +const uniqueMessages = computed(() => { + const messages = props.invocation?.messages || []; + const uniqueMessagesSet = new Set(messages.map((message) => JSON.stringify(message))); + return Array.from(uniqueMessagesSet).map((message) => JSON.parse(message)) as InvocationMessageResponseModel[]; }); const stepStatesStr = computed(() => { @@ -174,14 +177,14 @@ function onCancel() {
-
+
Generate PDF @@ -193,9 +196,9 @@ function onCancel() { note="Loading step state summary..." :loading="true" class="steps-progress" /> -