From eeed67ecac8fca3d542c4d68c1eb13ca113c5053 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=8A=E3=81=95=E3=82=80=E3=81=AE=E3=81=B2=E3=81=A8?= <46447427+samunohito@users.noreply.github.com> Date: Thu, 14 Dec 2023 07:18:29 +0900 Subject: [PATCH] =?UTF-8?q?(fix)=20=E3=83=87=E3=83=95=E3=82=A9=E3=83=AB?= =?UTF-8?q?=E3=83=88=E8=A1=A8=E7=A4=BA=E6=99=82=E3=81=AE=E3=83=98=E3=83=83?= =?UTF-8?q?=E3=83=80=E3=81=AB=E3=81=82=E3=82=8B=E3=83=81=E3=83=A3=E3=83=B3?= =?UTF-8?q?=E3=83=8D=E3=83=AB=E3=83=9C=E3=82=BF=E3=83=B3=E3=81=8C=E5=8F=8D?= =?UTF-8?q?=E5=BF=9C=E3=81=97=E3=81=AA=E3=81=84=E7=8F=BE=E8=B1=A1=E3=81=AE?= =?UTF-8?q?=E4=BF=AE=E6=AD=A3=20(#12648)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * dividerの仕変に追従 * fix type --- packages/frontend/src/pages/timeline.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/frontend/src/pages/timeline.vue b/packages/frontend/src/pages/timeline.vue index f3213ad273..59c45a57ff 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 { 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',