Skip to content

Commit 279c2b6

Browse files
committed
fix: remove optional operator from sortedAction param
1 parent 236455b commit 279c2b6

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/hooks/useAutocompleteSuggestions.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ type UseAutocompleteSuggestionsParams = {
4949
loginList: OnyxEntry<Record<string, unknown>>;
5050
policies: NonNullable<OnyxCollection<Policy>>;
5151
visibleReportActionsData?: VisibleReportActionsDerivedValue;
52-
sortedActions?: Record<string, ReportAction[]>;
52+
sortedActions: Record<string, ReportAction[]> | undefined;
5353
currentUserAccountID: number;
5454
currentUserEmail: string;
5555
personalDetails: OnyxEntry<PersonalDetailsList>;

tests/unit/hooks/useAutocompleteSuggestions.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ const defaultParams = {
101101
loginList: {},
102102
policies: {},
103103
visibleReportActionsData: undefined,
104+
sortedActions: undefined,
104105
currentUserAccountID: 100,
105106
currentUserEmail: 'me@example.com',
106107
personalDetails: {},

0 commit comments

Comments
 (0)