Fix ability to run a live query when coming from host details page (#1035)
- Add `queryId` to `fetchTargets()` function call
This commit is contained in:
@@ -51,9 +51,10 @@ class SelectTargetsDropdown extends Component {
|
||||
componentWillReceiveProps(nextProps) {
|
||||
const { selectedTargets } = nextProps;
|
||||
const { query } = this.state;
|
||||
const { queryId } = this.props;
|
||||
|
||||
if (!isEqual(selectedTargets, this.props.selectedTargets)) {
|
||||
this.fetchTargets(query, selectedTargets);
|
||||
this.fetchTargets(query, queryId, selectedTargets);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user