Skip to content

The agent that grows with you

fmt(js): `npm run fix` on merge (#107022)

hermes-seaeye[bot]09183ae7bb68
diff --git a/apps/desktop/src/lib/session-date-groups.test.ts b/apps/desktop/src/lib/session-date-groups.test.ts
index b818b31648f..da1eeea7ee8 100644
--- a/apps/desktop/src/lib/session-date-groups.test.ts
+++ b/apps/desktop/src/lib/session-date-groups.test.ts
@@ -40,7 +40,7 @@ describe('groupEntriesByRecency', () => {
]
const full = group(entries)
- const dividers = full.flatMap((row, index) => row.kind === 'divider' ? [index] : [])
+ const dividers = full.flatMap((row, index) => (row.kind === 'divider' ? [index] : []))
const limited = groupEntriesByRecency(entries, NOW, MONDAY, 2)
expect(limited).toEqual(full.slice(0, dividers[1]))
diff --git a/apps/desktop/src/store/layout.ts b/apps/desktop/src/store/layout.ts
index a94e9101413..e755b772bc2 100644
--- a/apps/desktop/src/store/layout.ts
+++ b/apps/desktop/src/store/layout.ts
@@ -395,7 +395,14 @@ export const $sidebarFiltersActive: ReadableAtom<boolean> = computed(
* offering. Broader than `$sidebarFiltersActive`, which only knows about what
* hides rows, not about how they're grouped, sorted or labelled. */
export const $sidebarViewCustomized: ReadableAtom<boolean> = computed(
- [$sidebarGrouping, $sidebarOrdering, $sidebarRowMeta, $sidebarCardRows, $sidebarShowAllSessions, $sidebarFiltersActive],
+ [
+ $sidebarGrouping,
+ $sidebarOrdering,
+ $sidebarRowMeta,
+ $sidebarCardRows,
+ $sidebarShowAllSessions,
+ $sidebarFiltersActive
+ ],
(grouping, ordering, rowMeta, cardRows, showAllSessions, filtersActive) =>
grouping !== SIDEBAR_DEFAULT_GROUPING ||
ordering !== SIDEBAR_DEFAULT_ORDERING ||