File tree 6 files changed +26
-16
lines changed
desktop-client/src/components
loot-core/src/client/modals
6 files changed +26
-16
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ import { useDispatch } from '../redux';
13
13
import { EditSyncAccount } from './banksync/EditSyncAccount' ;
14
14
import { AccountAutocompleteModal } from './modals/AccountAutocompleteModal' ;
15
15
import { AccountMenuModal } from './modals/AccountMenuModal' ;
16
- import { BudgetFileSelectionModal } from './modals/BudgetListModal ' ;
16
+ import { BudgetFileSelectionModal } from './modals/BudgetFileSelectionModal ' ;
17
17
import { BudgetPageMenuModal } from './modals/BudgetPageMenuModal' ;
18
18
import { CategoryAutocompleteModal } from './modals/CategoryAutocompleteModal' ;
19
19
import { CategoryGroupMenuModal } from './modals/CategoryGroupMenuModal' ;
@@ -335,7 +335,7 @@ export function Modals() {
335
335
</ NamespaceContext . Provider >
336
336
) ;
337
337
338
- case 'budget-list ' :
338
+ case 'budget-file-selection ' :
339
339
return < BudgetFileSelectionModal key = { name } /> ;
340
340
case 'delete-budget' :
341
341
return < DeleteFileModal key = { name } { ...modal . options } /> ;
Original file line number Diff line number Diff line change @@ -419,17 +419,21 @@ function BudgetFileList({
419
419
</ Text >
420
420
) }
421
421
>
422
- { file => (
423
- < BudgetFileListItem
424
- key = { isLocalFile ( file ) ? file . id : file . cloudFileId }
425
- value = { file }
426
- currentUserId = { currentUserId }
427
- quickSwitchMode = { quickSwitchMode }
428
- onSelect = { onSelect }
429
- onDelete = { onDelete }
430
- onDuplicate = { onDuplicate }
431
- />
432
- ) }
422
+ { file => {
423
+ const id = isLocalFile ( file ) ? file . id : file . cloudFileId ;
424
+ return (
425
+ < BudgetFileListItem
426
+ key = { id }
427
+ id = { id }
428
+ value = { file }
429
+ currentUserId = { currentUserId }
430
+ quickSwitchMode = { quickSwitchMode }
431
+ onSelect = { onSelect }
432
+ onDelete = { onDelete }
433
+ onDuplicate = { onDuplicate }
434
+ />
435
+ ) ;
436
+ } }
433
437
</ GridList >
434
438
) ;
435
439
}
Original file line number Diff line number Diff line change @@ -498,7 +498,7 @@ export function Budget() {
498
498
) ;
499
499
500
500
const onSwitchBudgetFile = useCallback ( ( ) => {
501
- dispatch ( pushModal ( { modal : { name : 'budget-list ' } } ) ) ;
501
+ dispatch ( pushModal ( { modal : { name : 'budget-file-selection ' } } ) ) ;
502
502
} , [ dispatch ] ) ;
503
503
504
504
const onOpenBudgetMonthMenu = useCallback (
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ export function BudgetFileSelectionModal() {
17
17
) ;
18
18
19
19
return (
20
- < Modal name = "budget-list " >
20
+ < Modal name = "budget-file-selection " >
21
21
{ ( { state : { close } } ) => (
22
22
< >
23
23
< ModalHeader
Original file line number Diff line number Diff line change @@ -453,7 +453,7 @@ export type Modal =
453
453
} ;
454
454
}
455
455
| {
456
- name : 'budget-list ' ;
456
+ name : 'budget-file-selection ' ;
457
457
}
458
458
| {
459
459
name : 'confirm-transaction-edit' ;
Original file line number Diff line number Diff line change
1
+ ---
2
+ category : Bugfix
3
+ authors : [joel-jeremy]
4
+ ---
5
+
6
+ Fix error on budget file selection page when using server
You can’t perform that action at this time.
0 commit comments