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:
noahtalerman
2021-06-09 18:54:59 -04:00
committed by GitHub
parent 121de5a87f
commit fce7d3bef5
@@ -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);
}
}