mirror of
https://github.com/open-metadata/OpenMetadata.git
synced 2026-01-08 05:26:19 +00:00
UI: Fixed issue with suggestion overlay staying after redirection to the result (#7808)
* Fixed issue with suggetion overlay staying after redirection to the result * fixed failing cypress test for my-data spec
This commit is contained in:
parent
eb4747362d
commit
5c5c305813
@ -55,7 +55,7 @@ describe('MyData page should work', () => {
|
||||
};
|
||||
|
||||
const checkRecentlySearchElement = (term) => {
|
||||
searchEntity(term);
|
||||
searchEntity(term, false);
|
||||
cy.clickOnLogo();
|
||||
cy.get(`[data-testid="search-term-${term}"]`)
|
||||
.scrollIntoView()
|
||||
|
||||
@ -75,6 +75,7 @@ const Appbar: React.FC = (): JSX.Element => {
|
||||
|
||||
const handleSearchChange = (value: string) => {
|
||||
setSearchValue(value);
|
||||
value ? setIsOpen(true) : setIsOpen(false);
|
||||
};
|
||||
|
||||
const supportLinks = [
|
||||
|
||||
@ -298,7 +298,6 @@ const Suggestions = ({ searchText, isOpen, setIsOpen }: SuggestionProp) => {
|
||||
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
||||
(res.data as any).suggest['metadata-suggest'][0].options
|
||||
);
|
||||
setIsOpen(true);
|
||||
} else {
|
||||
throw jsonData['api-error-messages']['unexpected-server-response'];
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user