Skip to content
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 3 additions & 1 deletion src/libs/actions/Device/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ function getDeviceID(): Promise<string | null> {
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.
Comment thread
DylanDylann marked this conversation as resolved.
const connection = Onyx.connectWithoutView({
key: ONYXKEYS.DEVICE_ID,
callback: (id) => {
Onyx.disconnect(connection);
Expand Down
2 changes: 1 addition & 1 deletion tests/unit/ReportUtilsGetIconsTest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixing the failed typecheck on main caused by this PR

};
const policy = LHNTestUtils.getFakePolicy('1');

Expand Down
Loading