Skip to content

Commit

Permalink
Added comments
Browse files Browse the repository at this point in the history
  • Loading branch information
praveen5959 authored Nov 6, 2024
1 parent 086c511 commit 3d1fdf6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/hooks/useSavedFilters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ const useSavedFiltersQuery = () => {

const { mutate: updateSavedFilters, isLoading: isUpdating } = useMutation(
(data: { filter: SavedFilterType; onSuccess?: () => void }) => {
// filter_builder will be deleted only for new filters.
if (_.has(data.filter.query, 'filter_builder')) {
data.filter.query = _.omit(data.filter.query, 'filter_builder');
}
Expand Down

0 comments on commit 3d1fdf6

Please sign in to comment.