Skip to content

Commit

Permalink
Merge pull request #53859 from software-mansion-labs/kicu/53823-fix-s…
Browse files Browse the repository at this point in the history
…earch-status

Fix Search page header not refreshing query
  • Loading branch information
luacmartins authored Dec 10, 2024
2 parents 499079b + f743ef1 commit fca45c9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/components/Search/SearchPageHeaderInput.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,10 @@ function SearchPageHeaderInput({queryJSON, children}: SearchPageHeaderInputProps
}
}, [isCannedQuery, isFocused, registerSearchPageInput, unregisterSearchPageInput]);

useEffect(() => {
setTextInputValue(queryText);
}, [queryText]);

useEffect(() => {
const substitutionsMap = buildSubstitutionsMap(originalInputQuery, personalDetails, reports, taxRates);
setAutocompleteSubstitutions(substitutionsMap);
Expand Down

0 comments on commit fca45c9

Please sign in to comment.