Add catch to `projectGroups` endpoint
The following discussion from !53781 (merged) should be addressed:
-
@nicolasdular started a discussion: (+1 comment) Question: Anything in an error case that we can or need to handle?
Possible solution
.catch(() => {
flash(__('Something went wrong while fetching projects'));
if (callback) {
callback();
}
});
OR
catch(callback);