Skip to content

Commit e3b3919

Browse files
committed
fix
1 parent 813ceba commit e3b3919

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

packages/compass-aggregations/src/components/pipeline-toolbar/pipeline-options/pipeline-collation.tsx

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,15 @@ const PipelineCollation: React.FunctionComponent<PipelineCollationProps> = ({
9191
}, [showMaxTimeMSWarning, maxTimeMSLimit]);
9292

9393
// Check if value exceeds the limit when warning is enabled
94-
const exceedsLimit = useMemo(() => {
95-
return (
96-
showMaxTimeMSWarning &&
97-
maxTimeMSValue &&
98-
maxTimeMSValue >= WEB_MAX_TIME_MS_LIMIT
99-
);
100-
}, [showMaxTimeMSWarning, maxTimeMSValue]);
94+
const exceedsLimit = Boolean(
95+
useMemo(() => {
96+
return (
97+
showMaxTimeMSWarning &&
98+
maxTimeMSValue &&
99+
maxTimeMSValue >= WEB_MAX_TIME_MS_LIMIT
100+
);
101+
}, [showMaxTimeMSWarning, maxTimeMSValue])
102+
);
101103

102104
return (
103105
<div

0 commit comments

Comments
 (0)