Skip to content

Commit

Permalink
Apply suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-s-molina committed Feb 27, 2024
1 parent f10cb87 commit de79685
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ export default function RangeFilterPlugin(props: PluginFilterRangeProps) {
return Math.min(1, parseFloat(normalizedStepSize));

Check warning on line 308 in superset-frontend/src/filters/components/Range/RangeFilterPlugin.tsx

View check run for this annotation

Codecov / codecov/patch

superset-frontend/src/filters/components/Range/RangeFilterPlugin.tsx#L307-L308

Added lines #L307 - L308 were not covered by tests
};

const step = stepHeuristic(min, max);
const step = max - min <= 1 ? stepHeuristic(min, max) : 1;

return (
<FilterPluginStyle height={height} width={width}>
Expand Down

0 comments on commit de79685

Please sign in to comment.