Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3501856
D6589.id22074.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
819 B
Referenced Files
None
Subscribers
None
D6589.id22074.diff
View Options
diff --git a/lib/selectors/calendar-selectors.js b/lib/selectors/calendar-selectors.js
--- a/lib/selectors/calendar-selectors.js
+++ b/lib/selectors/calendar-selectors.js
@@ -33,7 +33,10 @@
continue;
}
if (result[threadID]) {
- result[threadID].numVisibleEntries++;
+ result[threadID] = {
+ ...result[threadID],
+ numVisibleEntries: result[threadID].numVisibleEntries + 1,
+ };
} else {
result[threadID] = {
threadInfo,
diff --git a/lib/types/filter-types.js b/lib/types/filter-types.js
--- a/lib/types/filter-types.js
+++ b/lib/types/filter-types.js
@@ -29,6 +29,6 @@
};
export type FilterThreadInfo = {
- threadInfo: ThreadInfo,
- numVisibleEntries: number,
+ +threadInfo: ThreadInfo,
+ +numVisibleEntries: number,
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Dec 21, 3:51 AM (18 h, 10 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2683576
Default Alt Text
D6589.id22074.diff (819 B)
Attached To
Mode
D6589: [lib] Make FilterThreadInfo $ReadOnly
Attached
Detach File
Event Timeline
Log In to Comment