Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Opentrons/opentrons
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 6f3c127f7780ec9cac711104b8ae34377ac006c4
Choose a base ref
..
head repository: Opentrons/opentrons
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 62ba85d2898f92ba0b34aa73e21850b7de9a5857
Choose a head ref
Showing with 4 additions and 2 deletions.
  1. +4 −2 react-api-client/src/modules/useModulesQuery.ts
6 changes: 4 additions & 2 deletions react-api-client/src/modules/useModulesQuery.ts
Original file line number Diff line number Diff line change
@@ -29,12 +29,14 @@ export function useModulesQuery(
}),
{
enabled: host !== null,
// Filter unknown modules so we don't block the app, which
// can happen when developing new devices not yet known to the client.
select: resp => {
return {
...resp,
data: resp.data.filter(module => {
data: resp.data.filter(module =>
MODULE_MODELS.includes(module.moduleModel)
}),
),
}
},
...options,