From f349a1204126fd229b51a74b9847d0bb504df176 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 26 Apr 2026 08:16:54 +0000 Subject: [PATCH] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/components/cases/collections-tab.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/components/cases/collections-tab.tsx b/src/components/cases/collections-tab.tsx index d6d0e57..06cac6d 100644 --- a/src/components/cases/collections-tab.tsx +++ b/src/components/cases/collections-tab.tsx @@ -462,9 +462,11 @@ export function CollectionDetail({ if (error) { toast.error("Could not save", { description: error.message }); load(); - } else { - onChange(); } + // NOTE: intentionally do NOT call onChange() here. Inline cell edits are + // optimistic; bumping the parent reload counter caused the entire + // collection page to refetch and visually scroll. Heavier mutations + // (add/remove/reorder/post interest/etc.) still call onChange(). }; // Insert a new row at the end. Optional preset for transaction_type / description.