Fix account language selector (#39801)

This commit is contained in:
Echo authored and Tarrien committed 2026-08-14 07:23:42 -04:00
1 parent c45bcd990b
commit 32cbeb3952
2 files changed
+16 -6

No files matched your search

@@ -32,6 +32,12 @@ export const selectTimelineByParams = createAppSelector(
(key, timelines) => toTypedTimeline(timelines.get(key)),
);
export const selectTimelinesByAccount = createAppSelector(
[(state) => state.timelines, (_, accountId: string) => accountId],
(timelines, accountId) =>
timelines.filter((_, key) => key.startsWith(`account:${accountId}:`)),
);
export function toTypedTimeline(timeline?: ImmutableMap<string, unknown>) {
if (!timeline) {
return null;