From 6747b3545557ed9d28fb9e3ee32760af827afb5f Mon Sep 17 00:00:00 2001 From: Iris Scholten Date: Mon, 7 Jan 2019 15:01:44 -0800 Subject: [PATCH] fix(ui/dataLoaders): Ensure the type is streaming if the substep is streaming --- .../components/selectionStep/SelectDataSourceStep.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/ui/src/onboarding/components/selectionStep/SelectDataSourceStep.tsx b/ui/src/onboarding/components/selectionStep/SelectDataSourceStep.tsx index cb97694fbfb..6ec98e8de2d 100644 --- a/ui/src/onboarding/components/selectionStep/SelectDataSourceStep.tsx +++ b/ui/src/onboarding/components/selectionStep/SelectDataSourceStep.tsx @@ -61,6 +61,12 @@ export class SelectDataSourceStep extends PureComponent { this.state = {showStreamingSources: false} } + public componentDidMount() { + if (this.isStreaming && this.props.type !== DataLoaderType.Streaming) { + this.props.onSetDataLoadersType(DataLoaderType.Streaming) + } + } + public render() { return (