Skip to content

Fix unexpected error when submitter renames approved expense report #165938

Fix unexpected error when submitter renames approved expense report

Fix unexpected error when submitter renames approved expense report #165938

Triggered via pull request March 7, 2026 07:07
Status Success
Total duration 53s
Artifacts

lint.yml

on: pull_request
ESLint check
45s
ESLint check
Fit to window
Zoom out
Zoom in

Annotations

10 warnings
ESLint check: src/libs/OptionsListUtils/index.ts#L224
Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
ESLint check: src/libs/OptionsListUtils/index.ts#L215
Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
ESLint check: src/libs/OptionsListUtils/index.ts#L209
Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
ESLint check: src/libs/LocalePhoneNumber.ts#L9
Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
ESLint check: src/libs/CurrencyUtils.ts#L12
Onyx.connect() is deprecated. Use useOnyx() hook instead and pass the data as parameters to a pure function
ESLint check
React Hook useMemo has a missing dependency: 'styles.mr3'. Either include it or remove the dependency array
ESLint check: src/components/Search/SearchAutocompleteList.tsx#L358
The 'sections' array makes the dependencies of useEffect Hook (at line 440) change on every render. To fix this, wrap the initialization of 'sections' in its own useMemo() Hook
ESLint check: src/components/MoneyRequestReportView/MoneyRequestReportActionsList.tsx#L737
React Hook useCallback has a missing dependency: 'introSelected'. Either include it or remove the dependency array
ESLint check: src/components/MoneyReportHeader.tsx#L1862
React Hook useMemo has missing dependencies: 'isDelegateAccessRestricted' and 'showDelegateNoAccessModal'. Either include them or remove the dependency array
ESLint check: src/components/MoneyReportHeader.tsx#L728
The 'targetPolicyTags' conditional could make the dependencies of useCallback Hook (at line 767) change on every render. Move it inside the useCallback callback. Alternatively, wrap the initialization of 'targetPolicyTags' in its own useMemo() Hook