publish: loosen property access

This commit is contained in:
Liam Fitzgerald 2020-08-25 11:29:44 +10:00
parent 487377bd19
commit 766fd8411b

View File

@ -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 (
<NotebookRoutes