Skip to content

Commit 3d01c11

Browse files
committed
bring back empty object to derived value
1 parent 043b827 commit 3d01c11

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/libs/actions/OnyxDerived/configs/reportTransactionsAndViolations.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import type {OnyxCollection} from 'react-native-onyx';
22
import createOnyxDerivedValueConfig from '@userActions/OnyxDerived/createOnyxDerivedValueConfig';
3-
import CONST from '@src/CONST';
43
import ONYXKEYS from '@src/ONYXKEYS';
54
import type {Transaction} from '@src/types/onyx';
65

@@ -11,7 +10,7 @@ export default createOnyxDerivedValueConfig({
1110
dependencies: [ONYXKEYS.COLLECTION.TRANSACTION, ONYXKEYS.COLLECTION.TRANSACTION_VIOLATIONS],
1211
compute: ([transactions, violations], {sourceValues, currentValue}) => {
1312
if (!transactions) {
14-
return CONST.EMPTY_OBJECT;
13+
return {};
1514
}
1615

1716
// If there is a source value for transactions or transaction violations, we need to process only the transactions that have been updated or added

0 commit comments

Comments
 (0)