Stale selected change remains after discard from review UI
When multiple pending changes are selected for publishing, and one selected item is discarded from the new side-by-side review UI, the discarded item is removed visually from the pending changes list but still remains selected internally in the old selective publishing dropdown. Because of this, publishing from the old dropdown can include a stale/discarded item and fail. Refreshing the browser clears the stale selection, but the UI should update automatically. Steps to reproduce: 1. Create multiple pending changes. 2. Open the selective publishing dropdown. 3. Select multiple pending changes. 4. Open "Review selected changes". 5. Discard one selected change from the review UI. 6. Return to the selective publishing dropdown. 7. Try to publish the selected changes. Actual result: The discarded change is no longer visible, but it is still selected internally and can be sent in the publish request. Expected result: After discard, the selected changes list should sync with the latest pending changes. The discarded item should be removed from selection, the count should update, and publishing should only include remaining valid changes.
issue