fix: ensure first timeline is not ROUTE_VIEW_ALL when available
This commit is contained in:
parent
576c92acf6
commit
1e282048e1
|
|
@ -28,7 +28,7 @@ export const loader = () => {
|
|||
hasNotificationsSubscription,
|
||||
})
|
||||
|
||||
const firstTimeline = visible[0] ?? ROUTE_VIEW_ALL
|
||||
const firstTimeline = visible.find((id) => id !== ROUTE_VIEW_ALL) ?? ROUTE_VIEW_ALL
|
||||
|
||||
return redirect(`/timeline/${firstTimeline}/${ROUTE_FEED_PENDING}/${ROUTE_ENTRY_PENDING}`)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue