mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-10 18:21:34 +03:00
embed: nullish coalesce destructure
This commit is contained in:
parent
e44151e215
commit
4024707b5a
@ -85,10 +85,10 @@ function GraphPermalink(
|
||||
history.push(`/perma${permalink.slice(16)}`);
|
||||
};
|
||||
|
||||
const [nodeGroupHost, nodeGroupName] = association?.group.split('/').slice(-2);
|
||||
const [nodeGroupHost, nodeGroupName] = association?.group.split('/').slice(-2) ?? ['Unknown', 'Unknown'];
|
||||
const [nodeChannelHost, nodeChannelName] = association?.resource
|
||||
.split('/')
|
||||
.slice(-2);
|
||||
.slice(-2) ?? ['Unknown', 'Unknown'];
|
||||
const [
|
||||
locChannelName,
|
||||
locChannelHost,
|
||||
|
Loading…
Reference in New Issue
Block a user