Skip to content

Commit

Permalink
Fix channel menu disappearing
Browse files Browse the repository at this point in the history
  • Loading branch information
oskarrough committed Oct 28, 2023
1 parent a96c2e0 commit 3996007
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/components/r4-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,10 @@ export default class R4App extends LitElement {
this.userChannels = (await sdk.channels.readUserChannels()).data
if (this.userChannels?.length && !this.selectedSlug) {
this.selectedSlug = this.userChannels[0].slug
} else {
}

// On deleted channel
if (!this.userChannels?.length && this.selectedSlug) {
this.selectedSlug = null
}

Expand Down

0 comments on commit 3996007

Please sign in to comment.