From 4b1dab31c55e2001cc9d8bc376011418f9997719 Mon Sep 17 00:00:00 2001 From: Alin Voinea Date: Tue, 31 Aug 2021 18:16:34 +0300 Subject: [PATCH] Fix SearchWidget required pathname --- CHANGELOG.md | 2 ++ src/components/theme/SearchWidget/SearchWidget.jsx | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index c6da221d1b..d4826b00b2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,6 +8,8 @@ ### Bugfix +- Fix SearchWidget required `pathname` @avoinea #2645 + ### Internal - Updated Brazilian Portuguese translations @ericof diff --git a/src/components/theme/SearchWidget/SearchWidget.jsx b/src/components/theme/SearchWidget/SearchWidget.jsx index e3f6f22496..59bceeccc5 100644 --- a/src/components/theme/SearchWidget/SearchWidget.jsx +++ b/src/components/theme/SearchWidget/SearchWidget.jsx @@ -36,7 +36,7 @@ class SearchWidget extends Component { * @static */ static propTypes = { - pathname: PropTypes.string.isRequired, + pathname: PropTypes.string, }; /**