diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorSwitch.tsx b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorSwitch.tsx index 1cbef82031b5d..fe8f57991dc44 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorSwitch.tsx +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/SensorSwitch.tsx @@ -31,11 +31,8 @@ import { StopRunningSensorMutation, StopRunningSensorMutationVariables, } from './types/SensorMutations.types'; -import { - SensorStateQuery, - SensorStateQueryVariables, - SensorSwitchFragment, -} from './types/SensorSwitch.types'; +import {SensorStateQuery, SensorStateQueryVariables} from './types/SensorStateQuery.types'; +import {SensorSwitchFragment} from './types/SensorSwitch.types'; import {usePermissionsForLocation} from '../app/Permissions'; import {InstigationStatus, SensorType} from '../graphql/types'; import {TimeFromNow} from '../ui/TimeFromNow'; diff --git a/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorSwitch.types.ts b/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorSwitch.types.ts index bb29650f44480..b07fa252debcc 100644 --- a/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorSwitch.types.ts +++ b/js_modules/dagster-ui/packages/ui-core/src/sensors/types/SensorSwitch.types.ts @@ -18,24 +18,3 @@ export type SensorSwitchFragment = { | null; }; }; - -export type SensorStateQueryVariables = Types.Exact<{ - id: Types.Scalars['String']['input']; - selector: Types.InstigationSelector; -}>; - -export type SensorStateQuery = { - __typename: 'Query'; - instigationStateOrError: - | { - __typename: 'InstigationState'; - id: string; - selectorId: string; - name: string; - instigationType: Types.InstigationType; - status: Types.InstigationStatus; - runningCount: number; - } - | {__typename: 'InstigationStateNotFoundError'} - | {__typename: 'PythonError'}; -};