Fix an issue with group issue board error handling
-
Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you receive complimentary access to GitLab Duo.
Previuosly, if an error occurs (specifically a permission error), the board would fail to create, then try to use the nil issueBoard
variable in state, which caused a panic. This short-circuits the state handling if an error occurs, and adds a nil check before we persist to state.
Closes #6468 (closed)
Edited by 🤖 GitLab Bot 🤖