diff --git a/frontend/src/lib/hooks/useMessagesFiltersFields.ts b/frontend/src/lib/hooks/useMessagesFiltersFields.ts index c95fbe2fa..b24bd4713 100644 --- a/frontend/src/lib/hooks/useMessagesFiltersFields.ts +++ b/frontend/src/lib/hooks/useMessagesFiltersFields.ts @@ -50,8 +50,9 @@ export function useMessagesFiltersFields(topicName: string) { const setTopicMessageFiltersFromLocalStorage = ( key: keyof MessagesFilterFieldsType ) => { - if (topicMessagesFilters[key]) { - params.set(MessagesFilterKeys[key], topicMessagesFilters[key]); + const value = topicMessagesFilters[key] + if (value) { + params.set(MessagesFilterKeys[key], value); } };