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): selection not updated optimistically after mark as done (#2943)

dev-rb5bc9a14d6beb
diff --git a/js/app/packages/app/component/next-soup/actions/make-mark-done-action.ts b/js/app/packages/app/component/next-soup/actions/make-mark-done-action.ts
index 393dfa7d54..b5667e4791 100644
--- a/js/app/packages/app/component/next-soup/actions/make-mark-done-action.ts
+++ b/js/app/packages/app/component/next-soup/actions/make-mark-done-action.ts
@@ -167,14 +167,14 @@ export const makeMarkDoneAction = (options: MakeMarkDoneOptions) => {
? () => soup.focus.set(focusedIdBeforeMarkDone)
: undefined;
- await execute(entities, restoreFocus);
-
soup.selection.clear();
if (nextEntity) {
soup.focus.set(nextEntity.id);
onNavigate?.(nextEntity);
}
+
+ await execute(entities, restoreFocus);
};
return { canExecute, execute, executeWithSoup };