Skip to content

Commit

Permalink
Check info status before displaying info icon in search bar (#20502)
Browse files Browse the repository at this point in the history
* check info status for Icon

* add changelog

* only change icon name when info

* update changelog
  • Loading branch information
ousmaneo authored Sep 20, 2024
1 parent 7b1aa3b commit 13d6f3e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
7 changes: 7 additions & 0 deletions changelog/unreleased/issue-20409.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
type = "fixed"
message = "Fix search bar query validation error showing double icons."

issues = ["20409"]
pulls = ["20502"]

contributors = [""]
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,6 @@ const QueryValidation = () => {
tabIndex={0}
type="button">
<ErrorIcon $status={status} name={isInfo ? 'database' : 'error'} />
{!isInfo && <ErrorIcon $status={status} name="error" />}
</ExplanationTrigger>
) : (
<DocumentationLink page={DocsHelper.PAGES.SEARCH_QUERY_LANGUAGE}
Expand Down

0 comments on commit 13d6f3e

Please sign in to comment.