From 5250098a597b0a3fb3d0b7c58121283a6f9e2610 Mon Sep 17 00:00:00 2001 From: Daniel Campbell Date: Wed, 15 Aug 2018 15:05:46 -0700 Subject: [PATCH] Add check for source, remove unnecessary null return Co-authored-by: Deniz Kusefoglu Co-authored-by: Daniel Campbell --- ui/src/sources/components/SourceStep.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/src/sources/components/SourceStep.tsx b/ui/src/sources/components/SourceStep.tsx index 76fc3cf35..8572f9e59 100644 --- a/ui/src/sources/components/SourceStep.tsx +++ b/ui/src/sources/components/SourceStep.tsx @@ -162,10 +162,9 @@ class SourceStep extends PureComponent { private get passwordPlaceholder() { const {source} = this.props - if (source.authentication === 'basic') { + if (source && source.authentication === 'basic') { return 'Value saved in server' } - return null } private get authIndicator(): JSX.Element {