mirror of
https://github.com/urbit/shrub.git
synced 2024-11-28 22:33:06 +03:00
publish: loosen property access
This commit is contained in:
parent
487377bd19
commit
766fd8411b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user