diff --git a/src/features/device-state/routes/state-patch-v3.ts b/src/features/device-state/routes/state-patch-v3.ts index f8d911393..d67c3e263 100644 --- a/src/features/device-state/routes/state-patch-v3.ts +++ b/src/features/device-state/routes/state-patch-v3.ts @@ -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, + ), }, }, },