From 40d4e37f5c37f540fb8dd8083f9eaeae90be45c2 Mon Sep 17 00:00:00 2001 From: Seth Foster Date: Mon, 9 Oct 2023 17:19:13 -0400 Subject: [PATCH] remove more logging --- app/src/organisms/GripperWizardFlows/index.tsx | 1 - .../RobotDashboard/RecentRunProtocolCard.tsx | 9 +-------- .../RobotDashboard/hooks/useMissingHardwareText.ts | 4 ---- app/src/pages/Protocols/hooks/index.ts | 6 ------ app/src/redux/store.ts | 2 -- 5 files changed, 1 insertion(+), 21 deletions(-) diff --git a/app/src/organisms/GripperWizardFlows/index.tsx b/app/src/organisms/GripperWizardFlows/index.tsx index aad73c49630..44243e3eea0 100644 --- a/app/src/organisms/GripperWizardFlows/index.tsx +++ b/app/src/organisms/GripperWizardFlows/index.tsx @@ -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, diff --git a/app/src/organisms/OnDeviceDisplay/RobotDashboard/RecentRunProtocolCard.tsx b/app/src/organisms/OnDeviceDisplay/RobotDashboard/RecentRunProtocolCard.tsx index f9f1232b6da..edd44dbd90a 100644 --- a/app/src/organisms/OnDeviceDisplay/RobotDashboard/RecentRunProtocolCard.tsx +++ b/app/src/organisms/OnDeviceDisplay/RobotDashboard/RecentRunProtocolCard.tsx @@ -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 ? ( hardware.hardwareType ) - console.log( - '🚀 ~ file: useMissingHardwareText.ts:11 ~ missingProtocolHardwareType:', - missingProtocolHardwareType - ) const countMissingHardwareType = (hwType: 'pipette' | 'module'): number => { return missingProtocolHardwareType.filter( hardwareType => hardwareType === hwType diff --git a/app/src/pages/Protocols/hooks/index.ts b/app/src/pages/Protocols/hooks/index.ts index 131c4f9147d..16ceae4e002 100644 --- a/app/src/pages/Protocols/hooks/index.ts +++ b/app/src/pages/Protocols/hooks/index.ts @@ -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') { @@ -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 diff --git a/app/src/redux/store.ts b/app/src/redux/store.ts index a50fe50270e..c273950bc50 100644 --- a/app/src/redux/store.ts +++ b/app/src/redux/store.ts @@ -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()