diff --git a/changelogs/unreleased/5697-resouce-details-filtering-bug.yml b/changelogs/unreleased/5697-resouce-details-filtering-bug.yml new file mode 100644 index 000000000..fa4f43540 --- /dev/null +++ b/changelogs/unreleased/5697-resouce-details-filtering-bug.yml @@ -0,0 +1,6 @@ +description: "Resolve bug in resource details filtering, where removing log filters would send invalid request." +issue-nr: 5697 +change-type: patch +destination-branches: [master, iso7] +sections: + bugfix: "{{description}}" diff --git a/src/Slices/ResourceDetails/UI/Tabs/LogTab/Controls/LogLevelFilter.tsx b/src/Slices/ResourceDetails/UI/Tabs/LogTab/Controls/LogLevelFilter.tsx index a74df1903..b53af8794 100644 --- a/src/Slices/ResourceDetails/UI/Tabs/LogTab/Controls/LogLevelFilter.tsx +++ b/src/Slices/ResourceDetails/UI/Tabs/LogTab/Controls/LogLevelFilter.tsx @@ -21,7 +21,7 @@ export const LogLevelFilter: React.FC = ({ filter, setFilter }) => { }); const onSelect = (selection) => { - update(selection === null ? undefined : selection); + update(selection === null || selection === "" ? undefined : selection); }; const deleteChip = () =>