Skip to content

Commit

Permalink
fix: broken navigation with v3 input (#801)
Browse files Browse the repository at this point in the history
  • Loading branch information
jonaslagoni authored Oct 4, 2023
1 parent 4284264 commit ce3fbeb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/studio/src/components/Navigation.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,11 @@ const OperationsNavigation: React.FunctionComponent<NavigationSectionProps> = ({
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(
<li
Expand Down

0 comments on commit ce3fbeb

Please sign in to comment.