Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
vegano1 committed May 23, 2024
1 parent 7d57515 commit 6f3c127
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 }

Expand Down
9 changes: 5 additions & 4 deletions react-api-client/src/modules/useModulesQuery.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}
)

Expand Down

0 comments on commit 6f3c127

Please sign in to comment.