[PR #1073] [MERGED] Add clear error to API when no budget is open #3502

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

📋 Pull Request Information

Original PR: https://github.com/actualbudget/actual/pull/1073
Author: @j-f1
Created: 5/29/2023
Status: Merged
Merged: 6/4/2023
Merged by: @j-f1

Base: masterHead: jed/api-check-file-open


📝 Commits (2)

  • f90d0d6 Raise an error when attempting to perform an API operation on a budget when no file is open
  • 6c9fb3a Add release note

📊 Changes

2 files changed (+44 additions, -0 deletions)

View changed files

📝 packages/loot-core/src/server/api.ts (+38 -0)
upcoming-release-notes/1073.md (+6 -0)

📄 Description

Previously, this would fail with a confusing “cannot read property of undefined” error.


🔄 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/1073 **Author:** [@j-f1](https://github.com/j-f1) **Created:** 5/29/2023 **Status:** ✅ Merged **Merged:** 6/4/2023 **Merged by:** [@j-f1](https://github.com/j-f1) **Base:** `master` ← **Head:** `jed/api-check-file-open` --- ### 📝 Commits (2) - [`f90d0d6`](https://github.com/actualbudget/actual/commit/f90d0d6e0a735bc3c87cc9ac5b60ca97bf8b9812) Raise an error when attempting to perform an API operation on a budget when no file is open - [`6c9fb3a`](https://github.com/actualbudget/actual/commit/6c9fb3a9fb028b020be21aac35cc66c8a9d24f58) Add release note ### 📊 Changes **2 files changed** (+44 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/loot-core/src/server/api.ts` (+38 -0) ➕ `upcoming-release-notes/1073.md` (+6 -0) </details> ### 📄 Description Previously, this would fail with a confusing “cannot read property of `undefined`” error. --- <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:42:34 -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#3502