Skip to content

Commit 304a105

Browse files
Fix overlap threshold number picker (#322)
In my latest refactor 76093f1, I forgot to memorize `commitOverlapThreshold`.
1 parent 5b6d540 commit 304a105

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

webapp/src/pages/ClassOverlap.tsx

+4-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ const ClassOverlap = () => {
5656
);
5757

5858
const commitOverlapThreshold = useDebounced(
59-
(overlapThreshold: number | undefined) => setQuery({ overlapThreshold })
59+
React.useCallback(
60+
(overlapThreshold: number | undefined) => setQuery({ overlapThreshold }),
61+
[setQuery]
62+
)
6063
);
6164

6265
const checkValid = data?.plot.data[0].node.x.length > 0;

0 commit comments

Comments
 (0)