Skip to content

Commit 51669c3

Browse files
authored
fix: force cancel (#5045)
1 parent 23f4110 commit 51669c3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/dataExplorer/components/ResultsPane.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const rangeToParam = (timeRange: TimeRange) => {
9292
}
9393

9494
const ResultsPane: FC = () => {
95-
const {basic, query} = useContext(QueryContext)
95+
const {basic, query, cancel} = useContext(QueryContext)
9696
const {status, setStatus, setResult} = useContext(ResultsContext)
9797

9898
const [oldHorizDragPosition, setOldHorizDragPosition] = useResizeState()
@@ -222,7 +222,9 @@ const ResultsPane: FC = () => {
222222
onSubmit={submit}
223223
onNotify={fakeNotify}
224224
queryID=""
225-
cancelAllRunningQueries={() => {}}
225+
cancelAllRunningQueries={() => {
226+
cancel()
227+
}}
226228
/>
227229
</FlexBox>
228230
</div>

0 commit comments

Comments
 (0)