From 4024707b5a204c25b34b46f44fa550bcffb22519 Mon Sep 17 00:00:00 2001 From: Matilde Park Date: Fri, 7 May 2021 12:31:30 -0400 Subject: [PATCH] embed: nullish coalesce destructure --- pkg/interface/src/views/apps/permalinks/embed.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkg/interface/src/views/apps/permalinks/embed.tsx b/pkg/interface/src/views/apps/permalinks/embed.tsx index eee1781a65..86d1fefd8a 100644 --- a/pkg/interface/src/views/apps/permalinks/embed.tsx +++ b/pkg/interface/src/views/apps/permalinks/embed.tsx @@ -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,