Skip to content

Commit

Permalink
fix(ui): show container logs when using templateRef (#12973)
Browse files Browse the repository at this point in the history
Signed-off-by: Anton Gilgur <agilgur5@gmail.com>
  • Loading branch information
agilgur5 committed May 22, 2024
1 parent b5ed730 commit 920d965
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {InfoIcon, WarningIcon} from '../../../shared/components/fa-icons';
import {Links} from '../../../shared/components/links';
import {Context} from '../../../shared/context';
import {useLocalStorage} from '../../../shared/use-local-storage';
import {getPodName} from '../../../shared/pod-name';
import {getPodName, getTemplateNameFromNode} from '../../../shared/pod-name';
import {ScopedLocalStorage} from '../../../shared/scoped-local-storage';
import {services} from '../../../shared/services';
import {FullHeightLogsViewer} from './full-height-logs-viewer';
Expand Down Expand Up @@ -169,7 +169,7 @@ export function WorkflowLogsViewer({workflow, initialNodeId, initialPodName, con
// default to the node id of the pod
const nodeId = initialNodeId || podNamesToNodeIDs.get(podName);
const node = workflow.status.nodes[nodeId];
const templates = execSpec(workflow).templates.filter(t => !node || t.name === node.templateName);
const templates = execSpec(workflow).templates.filter(t => !node || t.name === getTemplateNameFromNode(node));

const containers = [
...new Set(
Expand Down

0 comments on commit 920d965

Please sign in to comment.