mirror of
https://github.com/urbit/shrub.git
synced 2024-12-22 10:21:31 +03:00
Merge pull request #5848 from urbit/po/groups-fix-channel-writers-perms-issue
groups: fix issue with chanel perms caused by use of Set()
This commit is contained in:
commit
fa255d494d
@ -91,7 +91,7 @@ export function GraphPermissions(props: GraphPermissionsProps) {
|
|||||||
|
|
||||||
const initialValues = {
|
const initialValues = {
|
||||||
writePerms,
|
writePerms,
|
||||||
writers: writers
|
writers: [...writers]
|
||||||
.filter(x => x !== hostShip),
|
.filter(x => x !== hostShip),
|
||||||
readerComments: association.metadata.vip === 'reader-comments'
|
readerComments: association.metadata.vip === 'reader-comments'
|
||||||
};
|
};
|
||||||
@ -104,7 +104,7 @@ export function GraphPermissions(props: GraphPermissionsProps) {
|
|||||||
resource: association.resource,
|
resource: association.resource,
|
||||||
tag: 'writers'
|
tag: 'writers'
|
||||||
};
|
};
|
||||||
const allWriters = writers.map(w => `~${w}`);
|
const allWriters = [...writers].map(w => `~${w}`);
|
||||||
if (values.readerComments !== readerComments) {
|
if (values.readerComments !== readerComments) {
|
||||||
await airlock.poke(metadataEdit(association, {
|
await airlock.poke(metadataEdit(association, {
|
||||||
vip: values.readerComments ? 'reader-comments' : ''
|
vip: values.readerComments ? 'reader-comments' : ''
|
||||||
|
Loading…
Reference in New Issue
Block a user