mirror of
https://github.com/ilyakooo0/urbit.git
synced 2025-01-05 13:55:54 +03:00
publish: inclusive group check for new groups
because the path starts /ship/, this check will always fail we update for post-groups paths
This commit is contained in:
parent
0cd5f143ce
commit
70b0c66df1
@ -133,7 +133,7 @@ export class Settings extends Component {
|
||||
// don't give the option to make inclusive if we don't own the target
|
||||
// group
|
||||
const targetOwned = (state.targetGroup)
|
||||
? state.targetGroup.slice(0, window.ship.length+3) === `/~${window.ship}/`
|
||||
? Boolean(state.targetGroup.includes(`/~${window.ship}/`))
|
||||
: false;
|
||||
let inclusiveToggle = <div />;
|
||||
if (targetOwned) {
|
||||
|
Loading…
Reference in New Issue
Block a user