Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3527829
D11261.id38232.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
665 B
Referenced Files
None
Subscribers
None
D11261.id38232.diff
View Options
diff --git a/lib/shared/thread-utils.js b/lib/shared/thread-utils.js
--- a/lib/shared/thread-utils.js
+++ b/lib/shared/thread-utils.js
@@ -3,6 +3,7 @@
import invariant from 'invariant';
import _find from 'lodash/fp/find.js';
import _mapValues from 'lodash/fp/mapValues.js';
+import _omit from 'lodash/fp/omit.js';
import _omitBy from 'lodash/fp/omitBy.js';
import * as React from 'react';
@@ -903,7 +904,7 @@
entries(rawThreadInfoWithoutSpecialRoles.roles).map(([key, role]) => [
key,
{
- ...role,
+ ..._omit('isDefault')(role),
specialRole: rolesWithFilteredThreadPermissions[key]?.specialRole,
},
]),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Dec 25, 6:54 AM (7 h, 8 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2701874
Default Alt Text
D11261.id38232.diff (665 B)
Attached To
Mode
D11261: [lib] Omit `isDefault` field in `rawThreadInfoFromServerThreadInfo`
Attached
Detach File
Event Timeline
Log In to Comment