Skip to content

Commit

Permalink
Merge pull request #2295 from influxdata/dataLoaders/refresh-streaming
Browse files Browse the repository at this point in the history
fix(ui/dataLoaders): Ensure type is streaming if the substep is streaming
  • Loading branch information
ischolten authored Jan 7, 2019
2 parents 9f20c40 + 6747b35 commit 9ae672d
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,12 @@ export class SelectDataSourceStep extends PureComponent<Props, State> {
this.state = {showStreamingSources: false}
}

public componentDidMount() {
if (this.isStreaming && this.props.type !== DataLoaderType.Streaming) {
this.props.onSetDataLoadersType(DataLoaderType.Streaming)
}
}

public render() {
return (
<Form onSubmit={this.handleClickNext}>
Expand Down

0 comments on commit 9ae672d

Please sign in to comment.