Add check for source, remove unnecessary null return

Co-authored-by: Deniz Kusefoglu <deniz@influxdata.com>
Co-authored-by: Daniel Campbell <metalwhirlwind@gmail.com>
pull/4226/head
Daniel Campbell 2018-08-15 15:05:46 -07:00
parent bf0a141347
commit 5250098a59
1 changed files with 1 additions and 2 deletions

View File

@ -162,10 +162,9 @@ class SourceStep extends PureComponent<Props, State> {
private get passwordPlaceholder() { private get passwordPlaceholder() {
const {source} = this.props const {source} = this.props
if (source.authentication === 'basic') { if (source && source.authentication === 'basic') {
return 'Value saved in server' return 'Value saved in server'
} }
return null
} }
private get authIndicator(): JSX.Element { private get authIndicator(): JSX.Element {