Skip to content

Commit

Permalink
[Logs UI] Make log threshold criterion field clearable
Browse files Browse the repository at this point in the history
  • Loading branch information
miltonhultgren committed Sep 7, 2021
1 parent 76a6ef9 commit 004ffb6
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -131,6 +131,11 @@ export const Criterion: React.FC<Props> = ({

const handleFieldChange = useCallback(
([selectedOption]) => {
if (!selectedOption) {
updateCriterion(idx, { field: '' });
return;
}

const fieldName = selectedOption.label;

const nextFieldInfo = getFieldInfo(fields, fieldName);
Expand Down

0 comments on commit 004ffb6

Please sign in to comment.