diff --git a/webapp/channels/src/components/search_results/files_filter_menu.tsx b/webapp/channels/src/components/search_results/files_filter_menu.tsx
index 6cf21efdb3..6515cb1398 100644
--- a/webapp/channels/src/components/search_results/files_filter_menu.tsx
+++ b/webapp/channels/src/components/search_results/files_filter_menu.tsx
@@ -2,7 +2,7 @@
// See LICENSE.txt for license information.
import React from 'react';
-import {FormattedMessage} from 'react-intl';
+import {FormattedMessage, useIntl} from 'react-intl';
import {FilterVariantIcon} from '@mattermost/compass-icons/components';
@@ -20,6 +20,7 @@ type Props = {
};
export default function FilesFilterMenu(props: Props): JSX.Element {
+ const intl = useIntl();
return (
@@ -46,54 +47,54 @@ export default function FilesFilterMenu(props: Props): JSX.Element {