Skip to content

Commit 3f94e05

Browse files
committed
feat: export getAllTransactionDrafts and getAllReportNameValuePairs getters
1 parent df3cc40 commit 3f94e05

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

src/libs/actions/IOU/index.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1057,6 +1057,14 @@ function getUserAccountID(): number {
10571057
return userAccountID;
10581058
}
10591059

1060+
function getAllTransactionDrafts(): NonNullable<OnyxCollection<OnyxTypes.Transaction>> {
1061+
return allTransactionDrafts;
1062+
}
1063+
1064+
function getAllReportNameValuePairs(): OnyxCollection<OnyxTypes.ReportNameValuePairs> {
1065+
return allReportNameValuePairs;
1066+
}
1067+
10601068
/**
10611069
* This function uses Onyx.connect and should be replaced with useOnyx for reactive data access.
10621070
* TODO: remove `getPolicyTagsData` from this file (https://github.com/Expensify/App/issues/72721)
@@ -13485,6 +13493,8 @@ export {
1348513493
getAllTransactionViolations,
1348613494
getAllReports,
1348713495
getAllReportActionsFromIOU,
13496+
getAllTransactionDrafts,
13497+
getAllReportNameValuePairs,
1348813498
getCurrentUserEmail,
1348913499
getUserAccountID,
1349013500
getReceiptError,

0 commit comments

Comments
 (0)