diff --git a/ui/src/sources/components/KapacitorStep.tsx b/ui/src/sources/components/KapacitorStep.tsx index db995d1b2..0251b1d2a 100644 --- a/ui/src/sources/components/KapacitorStep.tsx +++ b/ui/src/sources/components/KapacitorStep.tsx @@ -38,7 +38,7 @@ interface Props { setError: (b: boolean) => void sources: Source[] onBoarding?: boolean - kapacitor: Kapacitor + kapacitor?: Kapacitor deleteKapacitor: sourcesActions.DeleteKapacitor setActiveKapacitor: sourcesActions.SetActiveKapacitor fetchKapacitors: sourcesActions.FetchKapacitorsAsync diff --git a/ui/src/sources/containers/OnboardingWizard.tsx b/ui/src/sources/containers/OnboardingWizard.tsx index 41aa50603..1115c236b 100644 --- a/ui/src/sources/containers/OnboardingWizard.tsx +++ b/ui/src/sources/containers/OnboardingWizard.tsx @@ -98,7 +98,7 @@ class OnboardingWizard extends PureComponent { (this.sourceStepRef = c)} setError={this.handleSetSourceError} - source={source} + source={source as Source} onBoarding={true} me={me} isUsingAuth={isUsingAuth} @@ -114,7 +114,7 @@ class OnboardingWizard extends PureComponent { previousLabel="Go Back" > (this.dashboardStepRef = c)} @@ -131,9 +131,9 @@ class OnboardingWizard extends PureComponent { previousLabel="Go Back" > (this.kapacitorStepRef = c)} + ref={(c: any) => (this.kapacitorStepRef = c)} setError={this.handleSetKapacitorError} - source={source} + source={source as Source} onBoarding={true} />