publish-js: account for missing group

This commit is contained in:
Liam Fitzgerald 2020-07-31 11:22:57 +10:00
parent 798f3b5de0
commit 3e3f1c4558

View File

@ -179,7 +179,7 @@ export class Notebook extends Component {
const group = props.groups[notebook?.['writers-group-path']];
const role = roleForShip(group, window.ship);
const role = group ? roleForShip(group, window.ship) : undefined;
const subsComponent = (this.props.ship.slice(1) === window.ship) || (role === 'admin')
? (<Link to={subs} className={tabStyles.subscribers}>