Skip to content

Commit

Permalink
Fixes #38042 - Pass LCE ID in Refresh Counts action from WebUI (#11235)
Browse files Browse the repository at this point in the history
  • Loading branch information
pavanshekar authored Nov 26, 2024
1 parent ffbf8b2 commit 951fb57
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 3 additions & 1 deletion webpack/scenes/SmartProxy/ExpandableCvDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
}));
},
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 951fb57

Please sign in to comment.