We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d17542c commit fc4dfe2Copy full SHA for fc4dfe2
1 file changed
packages/components/src/internal/renderers/TransactionAuditIdRenderer.tsx
@@ -11,10 +11,16 @@ interface Props {
11
export class TransactionAuditIdRenderer extends PureComponent<Props> {
12
render(): ReactNode {
13
const { row } = this.props;
14
- const id = caseInsensitive(row.toJS(), 'transactionId')?.value;
+ const _row = row.toJS();
15
+ const id = caseInsensitive(_row, 'transactionId')?.value;
16
if (!id) {
17
return null;
18
}
- return <AppLink to={AppURL.create('audit', id)}>{id}</AppLink>;
19
+ let url = AppURL.create('audit', id);
20
+ const activeTab = caseInsensitive(_row, 'EventType')?.value.toLowerCase();
21
+ if (activeTab) {
22
+ url = url.addParam('tab', activeTab);
23
+ }
24
+ return <AppLink to={url}>{id}</AppLink>;
25
26
0 commit comments