mirror of
https://github.com/urbit/shrub.git
synced 2024-11-28 13:54:20 +03:00
parent
4354fdde09
commit
164e90b53f
@ -25,8 +25,8 @@ export function ChatResource(props: ChatResourceProps) {
|
||||
return null;
|
||||
}
|
||||
|
||||
const { envelopes, config } = props.inbox[station];
|
||||
const { read, length } = config;
|
||||
const { envelopes, config } = (props.inbox?.[station]) ? props.inbox[station] : {envelopes: [], config: {}};
|
||||
const { read, length } = (config) ? config : undefined;
|
||||
|
||||
const groupPath = props.association["group-path"];
|
||||
const group = props.groups[groupPath];
|
||||
|
Loading…
Reference in New Issue
Block a user