mirror of
https://github.com/ansible/awx.git
synced 2026-03-06 11:11:07 -03:30
Copy the query params so that we don't add id__in to them. This fixes a bug where a newly copied row would not show up on the list if a websocket message for an inventory source sync had come through beforehand because id__in had been added to the query params.
This commit is contained in:
@@ -72,7 +72,7 @@ function InventoryList({ i18n }) {
|
|||||||
|
|
||||||
const fetchInventoriesById = useCallback(
|
const fetchInventoriesById = useCallback(
|
||||||
async ids => {
|
async ids => {
|
||||||
const params = parseQueryString(QS_CONFIG, location.search);
|
const params = { ...parseQueryString(QS_CONFIG, location.search) };
|
||||||
params.id__in = ids.join(',');
|
params.id__in = ids.join(',');
|
||||||
const { data } = await InventoriesAPI.read(params);
|
const { data } = await InventoriesAPI.read(params);
|
||||||
return data.results;
|
return data.results;
|
||||||
|
|||||||
Reference in New Issue
Block a user