From 6f3c127f7780ec9cac711104b8ae34377ac006c4 Mon Sep 17 00:00:00 2001 From: vegano1 Date: Thu, 23 May 2024 14:25:49 -0400 Subject: [PATCH] lint --- .../src/modules/__tests__/useModulesQuery.test.tsx | 2 +- react-api-client/src/modules/useModulesQuery.ts | 9 +++++---- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/react-api-client/src/modules/__tests__/useModulesQuery.test.tsx b/react-api-client/src/modules/__tests__/useModulesQuery.test.tsx index 06ccff2ed7fa..5d0f3d9e2389 100644 --- a/react-api-client/src/modules/__tests__/useModulesQuery.test.tsx +++ b/react-api-client/src/modules/__tests__/useModulesQuery.test.tsx @@ -24,7 +24,7 @@ const MODULES_RESPONSE = { } const UNKNOWN_MODULES_RESPONSE = { data: mockUnknownModuleResponse, - meta: { totalLength: 0, cursor: 0 } + meta: { totalLength: 0, cursor: 0 }, } const V2_MODULES_RESPONSE = { data: v2MockModulesResponse } diff --git a/react-api-client/src/modules/useModulesQuery.ts b/react-api-client/src/modules/useModulesQuery.ts index 86b92ab58c58..b7b1355dc916 100644 --- a/react-api-client/src/modules/useModulesQuery.ts +++ b/react-api-client/src/modules/useModulesQuery.ts @@ -27,16 +27,17 @@ export function useModulesQuery( } } }), - { enabled: host !== null, - select: (resp) => { + { + enabled: host !== null, + select: resp => { return { ...resp, - data: resp.data.filter((module)=> { + data: resp.data.filter(module => { MODULE_MODELS.includes(module.moduleModel) }), } }, - ...options + ...options, } )