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
parent
bf0a141347
commit
5250098a59
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue