Skip to content

Commit 6bbcb6a

Browse files
committed
Only add dataset filter to view in stream links if one exists
1 parent e2d7d50 commit 6bbcb6a

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

x-pack/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/log_entry_example.tsx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,14 @@ export const LogEntryExampleMessage: React.FunctionComponent<Props> = ({
111111
flyoutOptions: encode({
112112
surroundingLogsId: id,
113113
}),
114-
logFilter: encode({
115-
expression: `${partitionField}: ${dataset}`,
116-
kind: 'kuery',
117-
}),
114+
...(dataset
115+
? {
116+
logFilter: encode({
117+
expression: `${partitionField}: ${dataset}`,
118+
kind: 'kuery',
119+
}),
120+
}
121+
: {}),
118122
},
119123
});
120124

0 commit comments

Comments
 (0)