From c394d332c09fcb741d7bbbe0f9828fdd53cd0649 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Wed, 29 Jan 2025 11:38:35 -0700 Subject: [PATCH 1/2] update SearchPolicy --- src/types/onyx/SearchResults.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/types/onyx/SearchResults.ts b/src/types/onyx/SearchResults.ts index 453dbe247e2e..6c8fe370adfc 100644 --- a/src/types/onyx/SearchResults.ts +++ b/src/types/onyx/SearchResults.ts @@ -204,6 +204,12 @@ type SearchReportAction = { /** Model of policy search result */ type SearchPolicy = { + /** The ID of the policy */ + id: string; + + /** The name of the policy */ + name: string; + /** The policy type */ type: ValueOf; From 3e1bb3d4ab10547af7f631332baf0219cc10ac33 Mon Sep 17 00:00:00 2001 From: Carlos Martins Date: Wed, 29 Jan 2025 12:00:58 -0700 Subject: [PATCH 2/2] fix test --- tests/unit/Search/SearchUIUtilsTest.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/Search/SearchUIUtilsTest.ts b/tests/unit/Search/SearchUIUtilsTest.ts index 68e21957a691..1d7fb048817d 100644 --- a/tests/unit/Search/SearchUIUtilsTest.ts +++ b/tests/unit/Search/SearchUIUtilsTest.ts @@ -22,6 +22,8 @@ const searchResults: OnyxTypes.SearchResults = { }, }, [`policy_${policyID}`]: { + id: policyID, + name: 'Test policy', approvalMode: 'OPTIONAL', autoReimbursement: { limit: 0,