Skip to content

Commit

Permalink
add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
jczhong84 committed Nov 22, 2024
1 parent 8b086fa commit 3f33fb0
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions querybook/webapp/components/QueryRunButton/QueryRunButton.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -303,10 +303,8 @@ const TableSamplingSelector: React.FC<{
);

React.useEffect(() => {
if (
sampleRate === undefined ||
!sampleRateOptions.some((option) => option.value === sampleRate)
) {
// If it is a new cell without the sample rate selected, use the default sample rate from user settings
if (sampleRate === undefined) {
setSampleRate(parseFloat(userDefaultTableSampleRate));
}
}, [
Expand Down

0 comments on commit 3f33fb0

Please sign in to comment.