mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-14 17:41:33 +03:00
publish: prevent crash on refreshing notebook
This commit is contained in:
parent
29ae4fa54b
commit
25ee6053e6
@ -17,7 +17,7 @@ export function PublishResource(props: PublishResourceProps) {
|
||||
const { association, api, baseUrl, notebooks } = props;
|
||||
const appPath = association["app-path"];
|
||||
const [, ship, book] = appPath.split("/");
|
||||
const notebook = notebooks[ship][book];
|
||||
const notebook = notebooks[ship]?.[book];
|
||||
const notebookContacts = props.contacts[association["group-path"]];
|
||||
|
||||
return (
|
||||
|
Loading…
Reference in New Issue
Block a user