Page MenuHomePhabricator

D7932.id27136.diff
No OneTemporary

D7932.id27136.diff

diff --git a/lib/reducers/report-store-reducer.js b/lib/reducers/report-store-reducer.js
--- a/lib/reducers/report-store-reducer.js
+++ b/lib/reducers/report-store-reducer.js
@@ -131,15 +131,24 @@
};
} else if (action.type === queueReportsActionType) {
const { reports } = action.payload;
- const filteredReports = [...updatedReports, ...reports].filter(report =>
+ const filteredReports = reports.filter(report =>
isReportEnabled(report, state.enabledReports),
);
+
+ const reportStoreOperations: $ReadOnlyArray<ReportStoreOperation> =
+ convertReportsToReplaceReportOps([...newReports, ...filteredReports]);
+
+ const queuedReports = processReportStoreOperations(
+ state.queuedReports,
+ reportStoreOperations,
+ );
+
return {
reportStore: {
...state,
- queuedReports: filteredReports,
+ queuedReports,
},
- reportStoreOperations: [],
+ reportStoreOperations,
};
}
const reportStore =

File Metadata

Mime Type
text/plain
Expires
Mon, Dec 23, 8:32 AM (18 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2693329
Default Alt Text
D7932.id27136.diff (1007 B)

Event Timeline