From dd001f4d74adb20feb5f172fee943e6d6fc82708 Mon Sep 17 00:00:00 2001 From: c3024 Date: Wed, 16 Oct 2024 20:44:58 +0530 Subject: [PATCH] fix lint --- src/pages/EditReportFieldDropdown.tsx | 1 - src/pages/iou/request/MoneyRequestParticipantsSelector.tsx | 1 - src/pages/settings/Security/AddDelegate/AddDelegatePage.tsx | 2 +- tests/perf-test/OptionsListUtils.perf-test.ts | 2 +- 4 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pages/EditReportFieldDropdown.tsx b/src/pages/EditReportFieldDropdown.tsx index 0b51dc9a1615..dad93dce7964 100644 --- a/src/pages/EditReportFieldDropdown.tsx +++ b/src/pages/EditReportFieldDropdown.tsx @@ -11,7 +11,6 @@ import useLocalize from '@hooks/useLocalize'; import useTheme from '@hooks/useTheme'; import localeCompare from '@libs/LocaleCompare'; import * as OptionsListUtils from '@libs/OptionsListUtils'; -import CONST from '@src/CONST'; import ONYXKEYS from '@src/ONYXKEYS'; import type {RecentlyUsedReportFields} from '@src/types/onyx'; diff --git a/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx b/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx index db03173e5df1..b590581c15cb 100644 --- a/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx +++ b/src/pages/iou/request/MoneyRequestParticipantsSelector.tsx @@ -149,7 +149,6 @@ function MoneyRequestParticipantsSelector({ options.reports, participants, isPaidGroupPolicy, - debouncedSearchTerm, ]); const chatOptions = useMemo(() => { diff --git a/src/pages/settings/Security/AddDelegate/AddDelegatePage.tsx b/src/pages/settings/Security/AddDelegate/AddDelegatePage.tsx index 2cd569ca421b..6f433957015f 100644 --- a/src/pages/settings/Security/AddDelegate/AddDelegatePage.tsx +++ b/src/pages/settings/Security/AddDelegate/AddDelegatePage.tsx @@ -30,7 +30,7 @@ function useOptions() { const {recentReports, personalDetails, userToInvite, currentUserOption} = OptionsListUtils.getFilteredOptions({ reports: optionsList.reports, personalDetails: optionsList.personalDetails, - betas: betas, + betas, excludeLogins: [...CONST.EXPENSIFY_EMAILS, ...existingDelegates], diff --git a/tests/perf-test/OptionsListUtils.perf-test.ts b/tests/perf-test/OptionsListUtils.perf-test.ts index aec79df10ef9..0bfd84336760 100644 --- a/tests/perf-test/OptionsListUtils.perf-test.ts +++ b/tests/perf-test/OptionsListUtils.perf-test.ts @@ -109,7 +109,7 @@ describe('OptionsListUtils', () => { await waitForBatchedUpdates(); // Ideally getFilteredOptions should not be used with both options and search value // The more performant filterOptions should be used instead to pass search value with options containing reports and personal details - // @ts-expect-error + // @ts-expect-error pass both options and search value together await measureFunction(() => OptionsListUtils.getFilteredOptions({reports: options.reports, personalDetails: options.personalDetails, betas: mockedBetas, searchValue: SEARCH_VALUE})); });