From 951fb57a3786fe1e45674166d07841c96691964d Mon Sep 17 00:00:00 2001 From: Pavan Soma Shekar <32700193+pavanshekar@users.noreply.github.com> Date: Tue, 26 Nov 2024 09:28:17 -0500 Subject: [PATCH] Fixes #38042 - Pass LCE ID in Refresh Counts action from WebUI (#11235) --- webpack/scenes/SmartProxy/ExpandableCvDetails.js | 4 +++- webpack/scenes/SmartProxy/__tests__/SmartProxyContentTest.js | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/webpack/scenes/SmartProxy/ExpandableCvDetails.js b/webpack/scenes/SmartProxy/ExpandableCvDetails.js index 9a4508b4f97..e3ae3f83562 100644 --- a/webpack/scenes/SmartProxy/ExpandableCvDetails.js +++ b/webpack/scenes/SmartProxy/ExpandableCvDetails.js @@ -26,7 +26,9 @@ const ExpandableCvDetails = ({ const refreshCountAction = cvId => ({ title: __('Refresh counts'), onClick: () => { - dispatch(updateSmartProxyContentCounts(smartProxyId, { content_view_id: cvId })); + dispatch(updateSmartProxyContentCounts(smartProxyId, { + environment_id: envId, content_view_id: cvId, + })); }, }); diff --git a/webpack/scenes/SmartProxy/__tests__/SmartProxyContentTest.js b/webpack/scenes/SmartProxy/__tests__/SmartProxyContentTest.js index c00c2ae29bd..fd5cdd2d88b 100644 --- a/webpack/scenes/SmartProxy/__tests__/SmartProxyContentTest.js +++ b/webpack/scenes/SmartProxy/__tests__/SmartProxyContentTest.js @@ -85,6 +85,7 @@ test('Can call content count refresh for content view', async (done) => { const countsCVRefreshScope = nockInstance .post(smartProxyRefreshCountPath, { content_view_id: 1, + environment_id: 1, }) .reply(202);