Stopped page reload on edits
X-Lovable-Edit-ID: edt-f010b074-8227-4261-92fe-132b9f416495 Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user