Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3515334
D7932.id27136.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1007 B
Referenced Files
None
Subscribers
None
D7932.id27136.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D7932: [lib] refactor adding reports action for using operations
Attached
Detach File
Event Timeline
Log In to Comment