mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-14 17:41:33 +03:00
publish: prevent crash on unmanaged notebooks
This commit is contained in:
parent
8338bf7ac8
commit
ae25d948d5
@ -70,7 +70,7 @@ export class Notebook extends PureComponent<
|
||||
|
||||
const relativePath = (p: string) => this.props.baseUrl + p;
|
||||
|
||||
const contact = notebookContacts[ship];
|
||||
const contact = notebookContacts?.[ship];
|
||||
const role = group ? roleForShip(group, window.ship) : undefined;
|
||||
const isOwn = `~${window.ship}` === ship;
|
||||
const isAdmin = role === "admin" || isOwn;
|
||||
|
Loading…
Reference in New Issue
Block a user