From e8d3d7b8e718bb43460652b42791dd625ef87be1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E3=81=8B=E3=81=A3=E3=81=93=E3=81=8B=E3=82=8A?= <67428053+kakkokari-gtyih@users.noreply.github.com> Date: Thu, 15 Aug 2024 23:31:31 +0900 Subject: [PATCH] Update timeline.vue --- packages/frontend/src/pages/timeline.vue | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/packages/frontend/src/pages/timeline.vue b/packages/frontend/src/pages/timeline.vue index 3ff5c4e4484b..2f7473cb07ec 100644 --- a/packages/frontend/src/pages/timeline.vue +++ b/packages/frontend/src/pages/timeline.vue @@ -53,7 +53,6 @@ import { deepMerge } from '@/scripts/merge.js'; import { MenuItem } from '@/types/menu.js'; import { miLocalStorage } from '@/local-storage.js'; import { availableBasicTimelines, hasWithReplies, isAvailableBasicTimeline, isBasicTimeline, basicTimelineIconClass } from '@/timelines.js'; -import type { BasicTimelineType } from '@/timelines.js'; provide('shouldOmitHeaderTitle', true); @@ -240,11 +239,7 @@ function closeTutorial(): void { } function switchTlIfNeeded() { - function isNotInList(src: TimelinePageSrc): src is Exclude { - return !src.startsWith('list:'); - } - - if (isNotInList(src.value) && !availableBasicTimelines().includes(src.value)) { + if (isBasicTimeline(src.value) && !availableBasicTimelines().includes(src.value)) { src.value = availableBasicTimelines()[0]; } }