Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

fix(soup): sort being shared across views (#3855)

dev-rbb16cf94c3994
diff --git a/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx b/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx
index 41eb92670f..943ff644d1 100644
--- a/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx
+++ b/js/app/packages/app/component/next-soup/soup-view/soup-view.tsx
@@ -940,8 +940,11 @@ export const SoupViewList = (props: SoupViewListProps) => {
onMount(() => {
batch(() => {
const savedSort = sortPref();
+
if (savedSort.length > 0) {
soup.sort.setAll(savedSort as SystemSortOption[]);
+ } else {
+ soup.sort.setAll(['updated_at']);
}
// soup state is shared at the SplitPanel level, so a prior view in the
// same split (e.g. tasks) may have left grouping state behind. Always