diff --git a/apps/meteor/client/views/omnichannel/directory/chats/ChatFiltersContextualBar.tsx b/apps/meteor/client/views/omnichannel/directory/chats/ChatFiltersContextualBar.tsx index 0fb0e9917505b..e5b445fbc03e7 100644 --- a/apps/meteor/client/views/omnichannel/directory/chats/ChatFiltersContextualBar.tsx +++ b/apps/meteor/client/views/omnichannel/directory/chats/ChatFiltersContextualBar.tsx @@ -32,15 +32,10 @@ const ChatFiltersContextualBar = ({ onClose }: ChatFiltersContextualBarProps) => const { data } = useQuery(['livechat/custom-fields'], async () => allCustomFields()); const contactCustomFields = data?.customFields.filter((customField) => customField.scope !== 'visitor'); - const { filtersQuery, setFiltersQuery, resetFiltersQuery } = useChatsFilters(); + const { filtersQuery, setFiltersQuery, resetFiltersQuery, hasAppliedFilters } = useChatsFilters(); const queryClient = useQueryClient(); - const { - formState: { isDirty }, - handleSubmit, - control, - reset, - } = useForm({ + const { handleSubmit, control, reset } = useForm({ values: filtersQuery, }); @@ -171,7 +166,7 @@ const ChatFiltersContextualBar = ({ onClose }: ChatFiltersContextualBarProps) => -