Skip to content

Commit 6185d8a

Browse files
committed
Updated error message
1 parent 7b23b2f commit 6185d8a

File tree

1 file changed

+5
-1
lines changed
  • src/views/testingPerfs/content/runs/content/transactions/statistics/Transaction

1 file changed

+5
-1
lines changed

src/views/testingPerfs/content/runs/content/transactions/statistics/Transaction/index.tsx

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,11 @@ const Transaction: React.FC<Props> = (props: Props) => {
107107
const selectedTransactionRun = updatedTransaction.runs.find((t: any) => t.run.id === selectedRun.id);
108108

109109
if (selectedTransactionRun === undefined) {
110-
return <span>The selected run: {selectedRun.id} is not in the list of runs used for comparison</span>;
110+
console.log(
111+
`Unable to display transaction: ${transaction.name}, the selected run: ${selectedRun.id} is missing from the list of runs in for that transaction: `,
112+
updatedTransaction,
113+
);
114+
return <> </>;
111115
}
112116

113117
return (

0 commit comments

Comments
 (0)