From 766fd8411b6c961d1d06a8ece72ca242c8d17e8f Mon Sep 17 00:00:00 2001 From: Liam Fitzgerald Date: Tue, 25 Aug 2020 11:29:44 +1000 Subject: [PATCH] publish: loosen property access --- pkg/interface/src/views/apps/publish/app.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/interface/src/views/apps/publish/app.tsx b/pkg/interface/src/views/apps/publish/app.tsx index 62cacf8940..8955bb1aff 100644 --- a/pkg/interface/src/views/apps/publish/app.tsx +++ b/pkg/interface/src/views/apps/publish/app.tsx @@ -136,7 +136,10 @@ export default function PublishApp(props: PublishAppProps) { const notebookContacts = bookGroupPath in contacts ? contacts[bookGroupPath] : {}; - const notebook = notebooks[ship][book]; + const notebook = notebooks?.[ship]?.[book]; + if(!notebook) { + return null + } return (