diff --git a/web/app/components/workflow/variable-inspect/artifacts-tab.tsx b/web/app/components/workflow/variable-inspect/artifacts-tab.tsx index 4025d32c0b..afdd2688ef 100644 --- a/web/app/components/workflow/variable-inspect/artifacts-tab.tsx +++ b/web/app/components/workflow/variable-inspect/artifacts-tab.tsx @@ -72,7 +72,7 @@ const ArtifactsTab: FC = (headerProps) => {
- +
{t('debug.variableInspect.tabArtifacts.emptyTitle')}
@@ -93,6 +93,12 @@ const ArtifactsTab: FC = (headerProps) => { } const file = selectedFile + const parts = file?.path.split('/') ?? [] + let cumPath = '' + const pathSegments = parts.map((part, i) => { + cumPath += (cumPath ? '/' : '') + part + return { part, key: cumPath, isFirst: i === 0, isLast: i === parts.length - 1 } + }) return ( = (headerProps) => { <>
- {file.path.split('/').map((part, i, arr) => ( - - {i > 0 && /} + {pathSegments!.map(seg => ( + + {!seg.isFirst && /} - {part} + {seg.part} ))}