diff --git a/packages/frontend/src/pages/timeline.vue b/packages/frontend/src/pages/timeline.vue index f3213ad27391045b692e14bd284a5b16e7258958..59c45a57ff7fc0481eaf73dfbc56351d056f8f4a 100644 --- a/packages/frontend/src/pages/timeline.vue +++ b/packages/frontend/src/pages/timeline.vue @@ -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',