Fix account language selector (#39801)

This commit is contained in:
Echo authored and Claire committed 2026-07-16 14:47:44 +02:00
1 parent f2e61fbd56
commit ce8ce8dac1
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;