File tree Expand file tree Collapse file tree 1 file changed +9
-7
lines changed
packages/compass-aggregations/src/components/pipeline-toolbar/pipeline-options Expand file tree Collapse file tree 1 file changed +9
-7
lines changed Original file line number Diff line number Diff line change @@ -91,13 +91,15 @@ const PipelineCollation: React.FunctionComponent<PipelineCollationProps> = ({
91
91
} , [ showMaxTimeMSWarning , maxTimeMSLimit ] ) ;
92
92
93
93
// 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
+ ) ;
101
103
102
104
return (
103
105
< div
You can’t perform that action at this time.
0 commit comments