Skip to content

Commit

Permalink
remove messages type from WorkflowInvocationOverview
Browse files Browse the repository at this point in the history
Co-authored-by: mvdbeek <[email protected]>
  • Loading branch information
ahmedhamidawan and mvdbeek committed Aug 27, 2024
1 parent 957723d commit 40fd7e3
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ 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,
Expand Down Expand Up @@ -111,7 +110,7 @@ const invocationPdfLink = computed<string | null>(() => {
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[];
return Array.from(uniqueMessagesSet).map((message) => JSON.parse(message)) as typeof messages;
});
const stepStatesStr = computed<string>(() => {
Expand Down

0 comments on commit 40fd7e3

Please sign in to comment.