Merge pull request #770 from influxdata/add-source-bug

Fix not being able to add new source
pull/10616/head
Andrew Watkins 2017-01-13 11:31:12 -08:00 committed by GitHub
commit 0e420e80bc
1 changed files with 2 additions and 1 deletions

View File

@ -1,6 +1,7 @@
import React, {PropTypes} from 'react';
import classNames from 'classnames';
import {insecureSkipVerifyText} from 'src/shared/copy/tooltipText';
import _ from 'lodash';
const {
bool,
@ -87,7 +88,7 @@ export const SourceForm = React.createClass({
<label htmlFor="defaultSourceCheckbox">Make this the default source</label>
</div>
</div>
{source.url.startsWith("https") ?
{_.get(source, 'url', '').startsWith("https") ?
<div className="form-group col-xs-12">
<div className="form-control-static">
<input type="checkbox" id="insecureSkipVerifyCheckbox" defaultChecked={source.insecureSkipVerify} ref={(r) => this.sourceInsecureSkipVerify = r} />