Fix reverting to wrong policy when canceling out of the API token custom policy editor.
Review Request #12668 — Created Oct. 4, 2022 and submitted — Latest diff uploaded
When canceling out of the API token custom policy editor, the policy would
revert to the 2nd previous value instead of the most previous value. This made
it so that sometimes the policy would revert to the wrong value. This change
fixes that so that the policy reverts to the most previous value when
canceling out of the custom policy editor.
- Manually tested canceling out of the policy editor and made sure
the right policy was reverted to.