diff --git a/package.json b/package.json index 66c09e1ebe48..04ba078b321a 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "test:debug": "TZ=utc NODE_OPTIONS='--inspect-brk --experimental-vm-modules' jest --runInBand", "perf-test": "NODE_OPTIONS=--experimental-vm-modules npx reassure", "typecheck": "NODE_OPTIONS=--max_old_space_size=8192 tsc", - "lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=320 --cache --cache-location=node_modules/.cache/eslint", + "lint": "NODE_OPTIONS=--max_old_space_size=8192 eslint . --max-warnings=319 --cache --cache-location=node_modules/.cache/eslint", "lint-changed": "NODE_OPTIONS=--max_old_space_size=8192 ./scripts/lintChanged.sh", "lint-watch": "npx eslint-watch --watch --changed", "shellcheck": "./scripts/shellCheck.sh", diff --git a/src/libs/actions/Device/index.ts b/src/libs/actions/Device/index.ts index a167a13f9507..cc972ecd70ec 100644 --- a/src/libs/actions/Device/index.ts +++ b/src/libs/actions/Device/index.ts @@ -16,7 +16,9 @@ function getDeviceID(): Promise { return; } - const connection = Onyx.connect({ + // Use connectWithoutView because this is a one-time data fetch that disconnects immediately without triggering UI updates + // and this onyx key is created for non-UI task only. + const connection = Onyx.connectWithoutView({ key: ONYXKEYS.DEVICE_ID, callback: (id) => { Onyx.disconnect(connection); diff --git a/tests/unit/ReportUtilsGetIconsTest.ts b/tests/unit/ReportUtilsGetIconsTest.ts index cb15a26c86b8..2b30796a0384 100644 --- a/tests/unit/ReportUtilsGetIconsTest.ts +++ b/tests/unit/ReportUtilsGetIconsTest.ts @@ -148,7 +148,7 @@ describe('getIcons', () => { it('should return the correct icons for archived non expense request/report', () => { const report: Report = { ...LHNTestUtils.getFakeReport([1], 0, true), - type: CONST.REPORT.CHAT_TYPE.POLICY_EXPENSE_CHAT, + type: CONST.REPORT.CHAT_TYPE.INVOICE, }; const policy = LHNTestUtils.getFakePolicy('1');