Skip to content

Commit

Permalink
Only add dataset filter to view in stream links if one exists
Browse files Browse the repository at this point in the history
  • Loading branch information
Kerry350 committed Mar 4, 2021
1 parent e2d7d50 commit 6bbcb6a
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,14 @@ export const LogEntryExampleMessage: React.FunctionComponent<Props> = ({
flyoutOptions: encode({
surroundingLogsId: id,
}),
logFilter: encode({
expression: `${partitionField}: ${dataset}`,
kind: 'kuery',
}),
...(dataset
? {
logFilter: encode({
expression: `${partitionField}: ${dataset}`,
kind: 'kuery',
}),
}
: {}),
},
});

Expand Down

0 comments on commit 6bbcb6a

Please sign in to comment.