Skip to content

Commit

Permalink
Only reset initial CQL in cql search header form if value changes
Browse files Browse the repository at this point in the history
This was causing problems when the user wanted to write something more
in the text field, but upon searching, the query didn't update.
  • Loading branch information
Adamik10 committed Nov 10, 2023
1 parent 28b0d56 commit d92b2ff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apps/advanced-search/CqlSearchHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const CqlSearchHeader: React.FC<CqlSearchHeaderProps> = ({
if (initialCql.trim() !== "") {
setCql(initialCql);
}
});
}, [initialCql, setCql]);

return (
<>
Expand Down

0 comments on commit d92b2ff

Please sign in to comment.