Skip to content

Commit

Permalink
Fix dataset selection bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Elson9 committed Jan 30, 2025
1 parent 4b54f55 commit d4d0319
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nextapp/components/products-list/dataset-input.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,9 @@ const DatasetInput: React.FC<DatasetInputProps> = ({ dataset }) => {
[setSearch]
);
const handleBlur = () => {
if (search.trim()) {
if (selected) {
setSelected(selected);
} else if (search.trim()) {
const result = data?.allDatasets.find((d) => {
if (search.trim()) {
return d.title.toLowerCase() === search.toLowerCase();
Expand Down

0 comments on commit d4d0319

Please sign in to comment.