Skip to content

Commit

Permalink
Sonar commit 2
Browse files Browse the repository at this point in the history
Second commit for resolving Sonar Cloud issues
  • Loading branch information
TomDijkema committed Jun 14, 2024
1 parent 65f31be commit 3c838ed
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/general/formElements/Dropdown.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,10 @@ const Dropdown = (props: Props) => {
});
} else if (!hasDefault) {
selectItems[0].label = 'Reset filter';
};
}
} else if (!option?.value && selectItems.find((item) => item.label === 'Reset filter')) {
selectItems[0].label = placeholder ?? 'Select an option';
};
}

setSelectItems([...selectItems]);
}
Expand Down

0 comments on commit 3c838ed

Please sign in to comment.