Skip to content

Commit

Permalink
[klogs] Fix Exists Filter
Browse files Browse the repository at this point in the history
When a user used the exists filter in the logs table it only added
`_exists_ field` to the query, but it should add `_and_ _exists_ field`
to the query, so that the new query is valid and can be run directly.
This commit fixes the issue.
  • Loading branch information
ricoberger committed Feb 6, 2024
1 parent adb9641 commit efd4400
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/packages/klogs/src/components/Logs.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -340,11 +340,11 @@ const DocumentDetailsTable: FunctionComponent<{
</IconButton>
</Tooltip>

<Tooltip title={`add filter: _exists_ ${key}`}>
<Tooltip title={`add filter: _and_ _exists_ ${key}`}>
<IconButton
aria-label="add EXISTS field filter"
size="small"
onClick={() => addFilter(`_exists_ ${key}`)}
onClick={() => addFilter(`_and_ _exists_ ${key}`)}
>
<SavedSearch sx={{ fontSize: 16 }} />
</IconButton>
Expand Down

0 comments on commit efd4400

Please sign in to comment.