fix(core): Handle insights by workflow table for deleted workflows (#18496)

This commit is contained in:
Guillaume Jacquart
2025-08-18 17:49:21 +02:00
committed by GitHub
parent 9d48a44958
commit 741dd693a4
4 changed files with 47 additions and 22 deletions

View File

@@ -168,21 +168,28 @@ watch(sortBy, (newValue) => {
@update:options="emit('update:options', $event)"
>
<template #[`item.workflowName`]="{ item }">
<router-link
:to="getWorkflowLink(item)"
:class="$style.link"
@click="trackWorkflowClick(item)"
<component
:is="item.workflowId ? 'router-link' : 'div'"
v-bind="
item.workflowId
? {
to: getWorkflowLink(item),
class: $style.link,
onClick: () => trackWorkflowClick(item),
}
: {}
"
>
<N8nTooltip :content="item.workflowName" placement="top">
<div :class="$style.ellipsis">
{{ item.workflowName }}
</div>
</N8nTooltip>
</router-link>
</component>
</template>
<template #[`item.timeSaved`]="{ item, value }">
<router-link
v-if="!item.timeSaved"
v-if="!item.timeSaved && item.workflowId"
:to="getWorkflowLink(item, { settings: 'true' })"
:class="$style.link"
>