Skip to content

Commit 3829314

Browse files
committed
create search URL properly for undefined stream_id
1 parent 9de5a62 commit 3829314

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/web/components/QuickValuesPlusVisualization.jsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,8 @@ const QuickValuesPlusVisualization = React.createClass({
234234
//Properly format strings containing spaces, backslashes and colons.
235235
let escTerm = this.escape(`${d.term}`);
236236
let appendQuery = (this.props.config.query == "") ? this.props.config.field + ":" + escTerm : this.props.config.query + " AND " + this.props.config.field + ":" + escTerm;
237-
let replayURL = Routes.stream_search(this.props.config.stream_id, appendQuery, this._getTimeRange(), this.props.config.interval);
237+
let replayURL = (this.props.config.stream_id == undefined) ? Routes.search(appendQuery, this._getTimeRange(), this.props.config.interval) : Routes.stream_search(this.props.config.stream_id, appendQuery, this._getTimeRange(), this.props.config.interval);
238+
238239
return `${colourBadge} <a href="${replayURL}">${d.term}</a>`;
239240

240241
}

0 commit comments

Comments
 (0)