mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-14 17:41:33 +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