From 40e4ba43ef296e620c00cd595464720b70544879 Mon Sep 17 00:00:00 2001 From: mabashian Date: Thu, 10 Sep 2020 16:51:46 -0400 Subject: [PATCH] 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. --- .../src/screens/Inventory/InventoryList/InventoryList.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/awx/ui_next/src/screens/Inventory/InventoryList/InventoryList.jsx b/awx/ui_next/src/screens/Inventory/InventoryList/InventoryList.jsx index ad25249764..dbc1e82073 100644 --- a/awx/ui_next/src/screens/Inventory/InventoryList/InventoryList.jsx +++ b/awx/ui_next/src/screens/Inventory/InventoryList/InventoryList.jsx @@ -72,7 +72,7 @@ function InventoryList({ i18n }) { const fetchInventoriesById = useCallback( async ids => { - const params = parseQueryString(QS_CONFIG, location.search); + const params = { ...parseQueryString(QS_CONFIG, location.search) }; params.id__in = ids.join(','); const { data } = await InventoriesAPI.read(params); return data.results;