Skip to content

Commit

Permalink
remove more logging
Browse files Browse the repository at this point in the history
  • Loading branch information
sfoster1 committed Oct 9, 2023
1 parent a365a15 commit 40d4e37
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 21 deletions.
1 change: 0 additions & 1 deletion app/src/organisms/GripperWizardFlows/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,6 @@ export function GripperWizardFlows(
setCreatedMaintenanceRunId(response.data.id)
},
})
console.log('🚀 ~ file: index.tsx:81 ~ isLoading:', isCreateLoading)

const { data: maintenanceRunData } = useCurrentMaintenanceRun({
refetchInterval: RUN_REFETCH_INTERVAL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,14 +138,7 @@ export function ProtocolWithLastRun({
addSuffix: true,
}
).replace('about ', '')
console.log(
'🚀 ~ file: RecentRunProtocolCard.tsx:147 ~ isProtocolFetching:',
isProtocolFetching
)
console.log(
'🚀 ~ file: RecentRunProtocolCard.tsx:147 ~ isLookingForHardware:',
isLookingForHardware
)

return isProtocolFetching || isLookingForHardware ? (
<Skeleton
height="24.5rem"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@ export function useMissingHardwareText(
const missingProtocolHardwareType = missingProtocolHardware.map(
hardware => hardware.hardwareType
)
console.log(
'🚀 ~ file: useMissingHardwareText.ts:11 ~ missingProtocolHardwareType:',
missingProtocolHardwareType
)
const countMissingHardwareType = (hwType: 'pipette' | 'module'): number => {
return missingProtocolHardwareType.filter(
hardwareType => hardwareType === hwType
Expand Down
6 changes: 0 additions & 6 deletions app/src/pages/Protocols/hooks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,12 @@ export const useRequiredProtocolHardware = (
data: attachedModulesData,
isLoading: isLoadingModules,
} = useModulesQuery()
console.log('🚀 ~ file: index.ts:66 ~ isLoadingModules:', isLoadingModules)
const attachedModules = attachedModulesData?.data ?? []

const {
data: attachedInstrumentsData,
isLoading: isLoadingInstruments,
} = useInstrumentsQuery()
console.log(
'🚀 ~ file: index.ts:73 ~ isLoadingInstruments:',
isLoadingInstruments
)
const attachedInstruments = attachedInstrumentsData?.data ?? []

if (analysis == null || analysis?.status !== 'completed') {
Expand Down Expand Up @@ -179,7 +174,6 @@ export const useMissingProtocolHardware = (
const { requiredProtocolHardware, isLoading } = useRequiredProtocolHardware(
protocolId
)
console.log('🚀 ~ file: index.ts:236 ~ isLoading:', isLoading)
return {
missingProtocolHardware: requiredProtocolHardware.filter(
hardware => !hardware.connected
Expand Down
2 changes: 0 additions & 2 deletions app/src/redux/store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ export const store = createStore(rootReducer, composeEnhancers(middleware))

epicMiddleware.run(rootEpic)

store.subscribe(() => console.log(store.getState()))

// attach store to window if devtools are on once config initializes
const unsubscribe = store.subscribe(() => {
const { config } = store.getState()
Expand Down

0 comments on commit 40d4e37

Please sign in to comment.