Skip to content

Commit

Permalink
fix setting saved search
Browse files Browse the repository at this point in the history
  • Loading branch information
Dosant committed Feb 27, 2020
1 parent 5b96209 commit e3513e0
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export function createSearchBar({ core, storage, data }: StatefulSearchBarDeps)
query: '',
language: core.uiSettings.get('search:queryLanguage'),
};
const [query, setQuery] = useState<Query>(defaultQuery);
const [query, setQuery] = useState<Query>(props.query || defaultQuery);

useEffect(() => {
if (props.query !== queryRef.current) {
Expand Down

0 comments on commit e3513e0

Please sign in to comment.