From 782f6cbf3f83e521383000ddf06a3ddf5a6f0ea9 Mon Sep 17 00:00:00 2001 From: Ahmed Awan Date: Fri, 24 Jan 2025 11:28:36 -0600 Subject: [PATCH] [24.2] Also check `trs_tool_id` for imported workflow indicator --- .../src/components/Workflow/List/WorkflowIndicators.vue | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client/src/components/Workflow/List/WorkflowIndicators.vue b/client/src/components/Workflow/List/WorkflowIndicators.vue index d63617f852b5..a0757714555f 100644 --- a/client/src/components/Workflow/List/WorkflowIndicators.vue +++ b/client/src/components/Workflow/List/WorkflowIndicators.vue @@ -51,10 +51,12 @@ const shared = computed(() => { }); const sourceType = computed(() => { - if (props.workflow.source_metadata?.url) { + const { url, trs_server, trs_tool_id } = props.workflow.source_metadata || {}; + const trs = trs_server || trs_tool_id; + if (url) { return "url"; - } else if (props.workflow.source_metadata?.trs_server) { - return `trs_${props.workflow.source_metadata?.trs_server}`; + } else if (trs) { + return `trs_${trs}`; } else { return ""; }