mirror of
https://github.com/actualbudget/actual.git
synced 2026-03-11 20:44:32 -05:00
Mobile budget file switching logical error fix (#4596)
* Fix logical error to filter out just the current file from list of files, rather than excluding remote files. * Add release note and update comment
This commit is contained in:
@@ -532,8 +532,10 @@ export function BudgetList({ showHeader = true, quickSwitchMode = false }) {
|
||||
return file.state !== 'remote';
|
||||
}
|
||||
|
||||
const nonRemoteFiles = allFiles.filter(isNonRemoteFile);
|
||||
const files = id ? nonRemoteFiles.filter(f => f.id !== id) : allFiles;
|
||||
// Filter out the open file
|
||||
const files = id
|
||||
? allFiles.filter(file => !isNonRemoteFile(file) || file.id !== id)
|
||||
: allFiles;
|
||||
|
||||
const [creating, setCreating] = useState(false);
|
||||
const { isNarrowWidth } = useResponsive();
|
||||
|
||||
6
upcoming-release-notes/4596.md
Normal file
6
upcoming-release-notes/4596.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
category: Bugfix
|
||||
authors: [JSkinnerUK]
|
||||
---
|
||||
|
||||
Fix switching to remote budget files on mobile
|
||||
Reference in New Issue
Block a user