Remove type coersion

pull/13186/head
Deniz Kusefoglu 2019-04-05 14:35:57 -07:00
parent ba351e5fb8
commit a43ea6e2b0
1 changed files with 2 additions and 6 deletions

View File

@ -32,11 +32,7 @@ import * as copy from 'src/shared/copy/notifications'
import {Dispatch} from 'redux-thunk' import {Dispatch} from 'redux-thunk'
import {RemoteDataState, VariableTemplate} from 'src/types' import {RemoteDataState, VariableTemplate} from 'src/types'
import {GetState} from 'src/types' import {GetState} from 'src/types'
import { import {IVariable as Variable, ILabel as Label} from '@influxdata/influx'
IVariable as Variable,
ILabel as Label,
IVariable,
} from '@influxdata/influx'
import {VariableValuesByID} from 'src/variables/types' import {VariableValuesByID} from 'src/variables/types'
import { import {
addVariableLabelFailed, addVariableLabelFailed,
@ -154,7 +150,7 @@ export const getVariables = () => async (
const { const {
orgs: {org}, orgs: {org},
} = getState() } = getState()
const variables = (await client.variables.getAll(org.id)) as IVariable[] const variables = await client.variables.getAll(org.id)
dispatch(setVariables(RemoteDataState.Done, variables)) dispatch(setVariables(RemoteDataState.Done, variables))
} catch (e) { } catch (e) {