[PR #2144] [MERGED] Fix when pressing Enter adds an extra split transaction when no split remains #4146

Closed
opened 2026-02-28 20:52:11 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/2144
Author: @jasonmichalski
Created: 12/30/2023
Status: Merged
Merged: 1/6/2024
Merged by: @joel-jeremy

Base: masterHead: 2041-split-left


📝 Commits (3)

  • dd0a143 Fix pressing enter adds split transaction when no split remains
  • cee33b2 Added release notes
  • 38a22b1 Refactor to use find indstead of findIndex

📊 Changes

2 files changed (+9 additions, -1 deletions)

View changed files

📝 packages/desktop-client/src/components/transactions/TransactionsTable.jsx (+3 -1)
upcoming-release-notes/2144.md (+6 -0)

📄 Description

Fixes #2041

A race condition existed where the parent transaction in transactionMap was not yet updated to reflect the recently added child transaction when onCheckEnter() is called.

This PR gets the parent transaction from the same transactions array that the child transaction is retrieved from, which reflects the latest split calculation / error state.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/actualbudget/actual/pull/2144 **Author:** [@jasonmichalski](https://github.com/jasonmichalski) **Created:** 12/30/2023 **Status:** ✅ Merged **Merged:** 1/6/2024 **Merged by:** [@joel-jeremy](https://github.com/joel-jeremy) **Base:** `master` ← **Head:** `2041-split-left` --- ### 📝 Commits (3) - [`dd0a143`](https://github.com/actualbudget/actual/commit/dd0a143085f010ee8ac9632006f7c2432257cf4d) Fix pressing enter adds split transaction when no split remains - [`cee33b2`](https://github.com/actualbudget/actual/commit/cee33b21746264603dc7ea958cf39f5c9e4e4bcb) Added release notes - [`38a22b1`](https://github.com/actualbudget/actual/commit/38a22b1328a1bd9ebcc7d6ec334011803d0ece1c) Refactor to use find indstead of findIndex ### 📊 Changes **2 files changed** (+9 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `packages/desktop-client/src/components/transactions/TransactionsTable.jsx` (+3 -1) ➕ `upcoming-release-notes/2144.md` (+6 -0) </details> ### 📄 Description Fixes #2041 A race condition existed where the parent transaction in `transactionMap` was not yet updated to reflect the recently added child transaction when `onCheckEnter()` is called. This PR gets the parent transaction from the same transactions array that the child transaction is retrieved from, which reflects the latest split calculation / error state. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-02-28 20:52:11 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#4146