@@ -302,8 +302,8 @@ class Browser extends DashboardView {
302
302
if ( this . currentQuery ) {
303
303
this . currentQuery . cancel ( ) ;
304
304
}
305
- if ( this . currentInfoPanelQuery && this . currentInfoPanelQuery . abort ) {
306
- this . currentInfoPanelQuery . abort ( ) ;
305
+ if ( this . currentInfoPanelQuery ) {
306
+ Parse . Query . cancel ( this . currentInfoPanelQuery ) ;
307
307
this . currentInfoPanelQuery = null ;
308
308
}
309
309
this . removeLocation ( ) ;
@@ -353,8 +353,8 @@ class Browser extends DashboardView {
353
353
}
354
354
355
355
fetchAggregationPanelData ( objectId , className , appId ) {
356
- if ( this . currentInfoPanelQuery && this . currentInfoPanelQuery . abort ) {
357
- this . currentInfoPanelQuery . abort ( ) ;
356
+ if ( this . currentInfoPanelQuery ) {
357
+ Parse . Query . cancel ( this . currentInfoPanelQuery ) ;
358
358
this . currentInfoPanelQuery = null ;
359
359
}
360
360
@@ -365,19 +365,14 @@ class Browser extends DashboardView {
365
365
const params = {
366
366
object : Parse . Object . extend ( className ) . createWithoutData ( objectId ) . toPointer ( ) ,
367
367
} ;
368
- let xhr ;
369
368
const options = {
370
369
useMasterKey : true ,
371
- requestTask : req => {
372
- xhr = req ;
373
- } ,
374
370
} ;
375
371
const appName = this . props . params . appId ;
376
372
const cloudCodeFunction =
377
373
this . state . classwiseCloudFunctions [ `${ appId } ${ appName } ` ] ?. [ className ] [ 0 ] . cloudCodeFunction ;
378
374
379
375
const promise = Parse . Cloud . run ( cloudCodeFunction , params , options ) ;
380
- promise . abort = ( ) => xhr && xhr . abort ( ) ;
381
376
this . currentInfoPanelQuery = promise ;
382
377
promise . then (
383
378
result => {
0 commit comments