From 25ee6053e64274227f971e16e51ffec58403f900 Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Mon, 5 Oct 2020 14:33:34 -0400 Subject: [PATCH] publish: prevent crash on refreshing notebook --- pkg/interface/src/views/apps/publish/PublishResource.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/interface/src/views/apps/publish/PublishResource.tsx b/pkg/interface/src/views/apps/publish/PublishResource.tsx index 283c58c8d..d0aed568a 100644 --- a/pkg/interface/src/views/apps/publish/PublishResource.tsx +++ b/pkg/interface/src/views/apps/publish/PublishResource.tsx @@ -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 (