Skip to content
Snippets Groups Projects

Prepare 11.7.5 release

Merged GitLab Release Tools Bot requested to merge 11-7-stable-patch-5 into 11-7-stable
14 files
+ 179
29
Compare changes
  • Side-by-side
  • Inline
Files
14
@@ -415,12 +415,13 @@ export const submitSuggestion = (
commit(types.APPLY_SUGGESTION, { discussionId, noteId, suggestionId });
callback();
})
.catch(() => {
Flash(
__('Something went wrong while applying the suggestion. Please try again.'),
'alert',
flashContainer,
.catch(err => {
const defaultMessage = __(
'Something went wrong while applying the suggestion. Please try again.',
);
const flashMessage = err.response.data ? `${err.response.data.message}.` : defaultMessage;
Flash(__(flashMessage), 'alert', flashContainer);
callback();
});
};
Loading