From 3e3f1c4558427f43d5b7995acce61eb1568d3dcd Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Fri, 31 Jul 2020 11:22:57 +1000 Subject: [PATCH] publish-js: account for missing group --- pkg/interface/src/apps/publish/components/lib/notebook.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/interface/src/apps/publish/components/lib/notebook.js b/pkg/interface/src/apps/publish/components/lib/notebook.js index 31f5ba2b2..56e144c2d 100644 --- a/pkg/interface/src/apps/publish/components/lib/notebook.js +++ b/pkg/interface/src/apps/publish/components/lib/notebook.js @@ -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') ? (