Skip to content

Commit

Permalink
fix(e2e): force render the table on new data changes
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikjeeyar committed May 17, 2024
1 parent a14b600 commit 9605e76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/components/Commits/tabs/CommitsPipelineRunTab.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ const CommitsPipelineRunTab: React.FC<React.PropsWithChildren<CommitsPipelineRun
Pipeline runs
</Title>
<Table
key={`${pipelineRuns.length}-${vulnerabilities.fetchedPipelineRuns.length}`}
data={pipelineRuns}
aria-label="Pipelinerun List"
Header={PipelineRunListHeaderWithVulnerabilities}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -215,6 +215,7 @@ const PipelineRunsListView: React.FC<React.PropsWithChildren<PipelineRunsListVie
}
return (
<Table
key={`${pipelineRuns.length}-${vulnerabilities.fetchedPipelineRuns.length}`}
data={filteredPLRs}
unfilteredData={pipelineRuns}
NoDataEmptyMsg={NoDataEmptyMsg}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,7 @@ const SnapshotPipelineRunsList: React.FC<React.PropsWithChildren<SnapshotPipelin
</Toolbar>
{filteredPLRs.length > 0 ? (
<Table
key={`${snapshotPipelineRuns.length}-${vulnerabilities.fetchedPipelineRuns.length}`}
data={filteredPLRs}
aria-label="Pipeline run List"
customData={vulnerabilities}
Expand Down

0 comments on commit 9605e76

Please sign in to comment.