Skip to content
Snippets Groups Projects
Unverified Commit eeed67ec authored by おさむのひと's avatar おさむのひと Committed by GitHub
Browse files

(fix) デフォルト表示時のヘッダにあるチャンネルボタンが反応しない現象の修正 (#12648)

* dividerの仕変に追従

* fix type
parent 37820ad5
No related branches found
No related tags found
No related merge requests found
......@@ -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',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment