We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2d7d50 commit 6bbcb6aCopy full SHA for 6bbcb6a
1 file changed
x-pack/plugins/infra/public/pages/logs/log_entry_rate/sections/anomalies/log_entry_example.tsx
@@ -111,10 +111,14 @@ export const LogEntryExampleMessage: React.FunctionComponent<Props> = ({
111
flyoutOptions: encode({
112
surroundingLogsId: id,
113
}),
114
- logFilter: encode({
115
- expression: `${partitionField}: ${dataset}`,
116
- kind: 'kuery',
117
- }),
+ ...(dataset
+ ? {
+ logFilter: encode({
+ expression: `${partitionField}: ${dataset}`,
118
+ kind: 'kuery',
119
+ }),
120
+ }
121
+ : {}),
122
},
123
});
124
0 commit comments