@@ -92,6 +92,8 @@ class TransferStore {
9292
9393 executionsPageSize = 10 ;
9494
95+ private deletedExecutionIds : Set < string > = new Set ( ) ;
96+
9597 @action resetTransferPagination ( ) : void {
9698 this . transfersPage = 1 ;
9799 this . transfersHasNextPage = false ;
@@ -288,6 +290,7 @@ class TransferStore {
288290 const incoming = transfer . executions . filter (
289291 e =>
290292 e . number > newestNumber &&
293+ ! this . deletedExecutionIds . has ( e . id ) &&
291294 ! this . executionsList . find ( l => l . id === e . id ) ,
292295 ) ;
293296 if ( incoming . length > 0 ) {
@@ -300,6 +303,7 @@ class TransferStore {
300303 const withTasks = exec as ExecutionTasks ;
301304 if (
302305 Array . isArray ( withTasks . tasks ) &&
306+ ! this . deletedExecutionIds . has ( exec . id ) &&
303307 ! this . executionsTasks . find ( et => et . id === exec . id )
304308 ) {
305309 sortTasks ( withTasks . tasks , TransferSourceUtils . sortTaskUpdates ) ;
@@ -318,6 +322,7 @@ class TransferStore {
318322 this . transferDetails = null ;
319323 this . currentlyLoadingExecution = "" ;
320324 this . executionsTasks = [ ] ;
325+ this . deletedExecutionIds . clear ( ) ;
321326 }
322327
323328 @action getTransfersSuccess (
@@ -462,6 +467,7 @@ class TransferStore {
462467 }
463468
464469 @action deleteExecutionSuccess ( transferId : string , executionId : string ) {
470+ this . deletedExecutionIds . add ( executionId ) ;
465471 let executions = [ ] ;
466472
467473 if ( this . transferDetails ?. id === transferId ) {
0 commit comments