Skip to content

Commit

Permalink
Fix error caused by joining unlisted channels in statebrowser
Browse files Browse the repository at this point in the history
  • Loading branch information
ItsOnlyBinary committed Nov 8, 2023
1 parent beda4de commit 084b55e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/StateBrowserNetwork.vue
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,8 @@ export default {
return;
}
const selectedItem = autoComplete.selectedItem;
if (event.key === 'Enter' && selectedItem.text === this.channel_add_input) {
const item = autoComplete.selectedItem;
if (event.key === 'Enter' && item && item.text === this.channel_add_input) {
return;
}
Expand Down

0 comments on commit 084b55e

Please sign in to comment.