mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2025-11-03 03:59:12 +00:00
fix: added current language as a dependency to select dropdown (#23377)
This commit is contained in:
parent
61ed53f7b2
commit
2f27a7a486
@ -47,7 +47,7 @@ export const GlobalSearchBar = () => {
|
||||
const { isNLPEnabled, isNLPActive, setNLPActive, setNLPEnabled } =
|
||||
useSearchStore();
|
||||
const searchContainerRef = useRef<HTMLDivElement>(null);
|
||||
const { t } = useTranslation();
|
||||
const { t, i18n } = useTranslation();
|
||||
const [isSearchBlur, setIsSearchBlur] = useState<boolean>(true);
|
||||
const [suggestionSearch, setSuggestionSearch] = useState<string>('');
|
||||
const location = useCustomLocation();
|
||||
@ -89,7 +89,7 @@ export const GlobalSearchBar = () => {
|
||||
))}
|
||||
</Select>
|
||||
),
|
||||
[searchCriteria]
|
||||
[searchCriteria, i18n.language]
|
||||
);
|
||||
|
||||
const handleSelectOption = useCallback((text: string) => {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user