Skip to content

Commit

Permalink
(fix) デフォルト表示時のヘッダにあるチャンネルボタンが反応しない現象の修正 (misskey-dev#12648)
Browse files Browse the repository at this point in the history
* dividerの仕変に追従

* fix type
  • Loading branch information
samunohito authored and camilla-ett committed Jan 2, 2024
1 parent 222be32 commit 08f2320
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/frontend/src/pages/timeline.vue
Original file line number Diff line number Diff line change
Expand Up @@ -125,14 +125,14 @@ async function chooseChannel(ev: MouseEvent): Promise<void> {
const channels = await os.api('channels/my-favorites', {
limit: 100,
});
const items = [
const items: MenuItem[] = [
...channels.map(channel => ({
type: 'link' as const,
text: channel.name,
indicate: channel.hasUnreadNote,
to: `/channels/${channel.id}`,
})),
(channels.length === 0 ? undefined : null),
(channels.length === 0 ? undefined : { type: 'divider' }),
{
type: 'link' as const,
icon: 'ti ti-plus',
Expand Down

0 comments on commit 08f2320

Please sign in to comment.