diff --git a/src/components/BarChart/BarChart.jsx b/src/components/BarChart/BarChart.jsx
index e0c4a6381..394a25c88 100644
--- a/src/components/BarChart/BarChart.jsx
+++ b/src/components/BarChart/BarChart.jsx
@@ -335,11 +335,9 @@ const BarChart = createClass({
: yAxisFinalFormatter;
if (_.isEmpty(data) || width < 1 || height < 1 || isLoading) {
- const emptyStateWrapper = getFirst(
- this.props,
- BarChart.EmptyStateWrapper,
-
- );
+ const emptyStateWrapper =
+ getFirst(this.props, BarChart.EmptyStateWrapper) ||
+ ;
return (
- );
+ />;
const fillerRowCount = _.clamp(minRows - _.size(data), 0, Infinity);
diff --git a/src/components/DateSelect/DateSelect.jsx b/src/components/DateSelect/DateSelect.jsx
index d1f86370b..7eeea9b41 100644
--- a/src/components/DateSelect/DateSelect.jsx
+++ b/src/components/DateSelect/DateSelect.jsx
@@ -306,11 +306,9 @@ const DateSelect = createClass({
const { cursor } = this.state;
const isRangeSameDay = DateUtils.isSameDay(from, to);
- const calendarMonth = getFirst(
- this.props,
- DateSelect.CalendarMonth,
-
- );
+ const calendarMonth =
+ getFirst(this.props, DateSelect.CalendarMonth) ||
+ ;
const monthsShown = clampMonthsShown(monthsShownRaw);
/* istanbul ignore next */
diff --git a/src/components/InfiniteSlidePanel/InfiniteSlidePanel.jsx b/src/components/InfiniteSlidePanel/InfiniteSlidePanel.jsx
index 92a62341a..4bd2b8050 100644
--- a/src/components/InfiniteSlidePanel/InfiniteSlidePanel.jsx
+++ b/src/components/InfiniteSlidePanel/InfiniteSlidePanel.jsx
@@ -91,11 +91,9 @@ const InfiniteSlidePanel = createClass({
...passThroughs
} = this.props;
- const slide = getFirst(
- this.props,
- InfiniteSlidePanel.Slide,
- {children}
- );
+ const slide =
+ getFirst(this.props, InfiniteSlidePanel.Slide) ||
+ {children};
const slideChildRenderFunction = slide.props.children;
if (!_.isFunction(slideChildRenderFunction)) {
throw new Error(
diff --git a/src/components/LineChart/LineChart.jsx b/src/components/LineChart/LineChart.jsx
index d8bdc62d7..e1889b4c9 100644
--- a/src/components/LineChart/LineChart.jsx
+++ b/src/components/LineChart/LineChart.jsx
@@ -500,11 +500,9 @@ const LineChart = createClass({
const xPoints = _.map(_.keys(xPointMap), _.toNumber);
if (_.isEmpty(data) || width < 1 || height < 1 || isLoading) {
- const emptyStateWrapper = getFirst(
- this.props,
- LineChart.EmptyStateWrapper,
-
- );
+ const emptyStateWrapper =
+ getFirst(this.props, LineChart.EmptyStateWrapper) ||
+ ;
return (
);
+ const messageElement =
+ getFirst(props, LoadingMessage) || ;
const otherChildren = rejectTypes(children, LoadingMessage);
return (
diff --git a/src/components/SearchField/SearchField.jsx b/src/components/SearchField/SearchField.jsx
index e5ed6e3d3..aca7ef08f 100644
--- a/src/components/SearchField/SearchField.jsx
+++ b/src/components/SearchField/SearchField.jsx
@@ -135,11 +135,8 @@ const SearchField = createClass({
value,
};
- const textFieldElement = getFirst(
- props,
- TextField,
-
- );
+ const textFieldElement =
+ getFirst(props, TextField) || ;
const isIconActive = _.isUndefined(isValid)
? !_.isEmpty(_.get(textFieldElement, 'props.value'))
: isValid;
diff --git a/src/components/SearchableMultiSelect/SearchableMultiSelect.jsx b/src/components/SearchableMultiSelect/SearchableMultiSelect.jsx
index 7bbd556ce..304b2dcaa 100644
--- a/src/components/SearchableMultiSelect/SearchableMultiSelect.jsx
+++ b/src/components/SearchableMultiSelect/SearchableMultiSelect.jsx
@@ -470,13 +470,11 @@ const SearchableMultiSelect = createClass({
'props',
{}
);
- const selectionLabel = getFirst(
- props,
- SearchableMultiSelect.SelectionLabel,
+ const selectionLabel =
+ getFirst(props, SearchableMultiSelect.SelectionLabel) ||
Selected
-
- );
+ ;
const isSmall = responsiveMode === 'small';
return (
diff --git a/src/components/SearchableSelect/SearchableSelect.jsx b/src/components/SearchableSelect/SearchableSelect.jsx
index 903f889af..e72336254 100644
--- a/src/components/SearchableSelect/SearchableSelect.jsx
+++ b/src/components/SearchableSelect/SearchableSelect.jsx
@@ -321,7 +321,7 @@ const SearchableSelect = createClass({
const { flattenedOptionsData } = this.state;
const searchFieldProps = _.get(
- getFirst(props, SearchField, ),
+ getFirst(props, SearchField) || ,
'props'
);
const placeholderProps = _.first(