Skip to content

Commit

Permalink
fix: custom columns not supporting annotations (#12421)
Browse files Browse the repository at this point in the history
Signed-off-by: jmeridth <[email protected]>
Signed-off-by: Jason Meridth <[email protected]>
Co-authored-by: Steven Johnson <[email protected]>
Co-authored-by: Anton Gilgur <[email protected]>
  • Loading branch information
3 people authored and sarabala1979 committed Jan 8, 2024
1 parent aaf9192 commit 4cce920
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function WorkflowsRow(props: WorkflowsRowProps) {
<div className='columns small-1'>{isArchivedWorkflow(wf) ? 'true' : 'false'}</div>
{(props.columns || []).map(column => {
// best not to make any assumptions and wait until this data is filled
const value = wf?.metadata?.labels?.[column.key] ?? 'unknown';
const value = (column.type === 'label' ? wf?.metadata?.labels?.[column.key] : wf?.metadata?.annotations?.[column.key]) ?? 'unknown';
return (
<div key={column.name} className='columns small-1'>
{value}
Expand Down

0 comments on commit 4cce920

Please sign in to comment.