groups: properly check and await notebook join

This commit is contained in:
Matilde Park 2020-10-05 14:31:27 -04:00
parent aaf3cbee23
commit 29ae4fa54b

View File

@ -31,7 +31,7 @@ function isJoined(app: string, path: string) {
return props.graphKeys.has(path);
case "publish":
[, ship, name] = path.split("/");
return !!props.notebooks[ship.slice(1)][name];
return !!props.notebooks[ship]?.[name];
case "chat":
return !!props.inbox[path];
default: