Commit faae274 1 parent f9c3a41 commit faae274 Copy full SHA for faae274
File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -317,11 +317,11 @@ Onyx.connect({
317
317
318
318
const firstReportAction = sortedReportActions . at ( 0 ) ;
319
319
if ( ! firstReportAction ) {
320
- return ;
320
+ delete lastReportActions [ reportID ] ;
321
+ } else {
322
+ lastReportActions [ reportID ] = firstReportAction ;
321
323
}
322
324
323
- lastReportActions [ reportID ] = firstReportAction ;
324
-
325
325
// The report is only visible if it is the last action not deleted that
326
326
// does not match a closed or created state.
327
327
const reportActionsForDisplay = sortedReportActions . filter (
@@ -334,6 +334,7 @@ Onyx.connect({
334
334
) ;
335
335
const reportActionForDisplay = reportActionsForDisplay . at ( 0 ) ;
336
336
if ( ! reportActionForDisplay ) {
337
+ delete lastVisibleReportActions [ reportID ] ;
337
338
return ;
338
339
}
339
340
lastVisibleReportActions [ reportID ] = reportActionForDisplay ;
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ Onyx.connect({
51
51
52
52
const reportAction = reportActionsForDisplay . at ( - 1 ) ;
53
53
if ( ! reportAction ) {
54
+ delete visibleReportActionItems [ reportID ] ;
54
55
return ;
55
56
}
56
57
visibleReportActionItems [ reportID ] = reportAction ;
You can’t perform that action at this time.
0 commit comments