Remove `useCustomErrorHandler` and `callback` options from `Api.groupProjects`
Update the Api.groupProjects
call in project_select.js#L56-68
to add a catch
that calls createFlash({ message: __('Something went wrong while fetching projects') });
when there's an error.
This should be the last entity of Api.groupProjects
calls that uses a callback, so we can remove the useCustomErrorHandler
and callback
options from Api.groupProjects
: https://gitlab.com/gitlab-org/gitlab/-/blob/32b77ac4e6b5118f4f3935c676a2118a22f0a831/app/assets/javascripts/api.js#L462-471
Source: !82101 (comment 878849740)
Edited by Michael Lunøe