Skip to content

Commit

Permalink
Improve patch-state-v3 typing
Browse files Browse the repository at this point in the history
This has been occasionally playing up locally and adding this
`as const` solves the issue

Change-type: patch
  • Loading branch information
Page- committed Dec 13, 2024
1 parent 193ebcb commit 63fece1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/features/device-state/routes/state-patch-v3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,12 @@ const fetchData = async (
imgLocationFilter.length === 1
? { i: imgLocationFilter[0] }
: {
$or: imgLocationFilter.map((ilf) => ({
i: ilf,
})),
$or: imgLocationFilter.map(
(ilf) =>
({
i: ilf,
}) as const,
),
},
},
},
Expand Down

0 comments on commit 63fece1

Please sign in to comment.