Page MenuHomePhabricator

D11261.id38231.diff
No OneTemporary

D11261.id38231.diff

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

Mime Type
text/plain
Expires
Sat, Nov 23, 7:31 AM (18 h, 36 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2556321
Default Alt Text
D11261.id38231.diff (665 B)

Event Timeline