An undefined variable was being referenced whenever an API Owner tried to vote Approved on their gate on a stage that also had other pending gates. This triggers the pre-vote dialog to remind them about the need for those other approvals.
Basically, the dialog render() method is called implicitly before the dialog is shown, so that caused an error before the list of gates was set to a defined value. The fix is to make the render code more robust in the case where that variable is undefined.
This should resolve #4172.
An undefined variable was being referenced whenever an API Owner tried to vote Approved on their gate on a stage that also had other pending gates. This triggers the pre-vote dialog to remind them about the need for those other approvals.
Basically, the dialog render() method is called implicitly before the dialog is shown, so that caused an error before the list of gates was set to a defined value. The fix is to make the render code more robust in the case where that variable is undefined.