From 9eec21e99d7b8e33c31ac490fb1b7f9931118fff Mon Sep 17 00:00:00 2001 From: Alex P Date: Wed, 8 Mar 2017 16:20:17 -0800 Subject: [PATCH] Change sourceIndicator to receive a string instead of an object --- ui/src/shared/components/SourceIndicator.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/ui/src/shared/components/SourceIndicator.js b/ui/src/shared/components/SourceIndicator.js index 4d681a70b..83bcbeeed 100644 --- a/ui/src/shared/components/SourceIndicator.js +++ b/ui/src/shared/components/SourceIndicator.js @@ -2,15 +2,18 @@ import React, {PropTypes} from 'react'; const SourceIndicator = React.createClass({ propTypes: { - source: PropTypes.shape({}).isRequired, + sourceName: PropTypes.string, }, render() { - const {source} = this.props; + const {sourceName} = this.props; + if (!sourceName) { + return null; + } return (
- {source && source.name} + {sourceName}
); },