diff --git a/apps/studio/src/components/Navigation.tsx b/apps/studio/src/components/Navigation.tsx index 381c28cef..4a94a1822 100644 --- a/apps/studio/src/components/Navigation.tsx +++ b/apps/studio/src/components/Navigation.tsx @@ -76,7 +76,11 @@ const OperationsNavigation: React.FunctionComponent = ({ const operations = document.operations().all().map( (operation) => { const channels: React.ReactNode[] = []; - const channelName = operation.channels().all()[0].address() || 'unknown'; + // only has one channel per operation + let channelName = 'Unknown'; + if (!operation.channels().isEmpty()) { + channelName = operation.channels().all()[0].address() ?? 'Unknown'; + } if (operation.isReceive()) { channels.push(