aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features/repo-issue.js
diff options
context:
space:
mode:
Diffstat (limited to 'web_src/js/features/repo-issue.js')
-rw-r--r--web_src/js/features/repo-issue.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/web_src/js/features/repo-issue.js b/web_src/js/features/repo-issue.js
index c2b0254a81..6e57facfd2 100644
--- a/web_src/js/features/repo-issue.js
+++ b/web_src/js/features/repo-issue.js
@@ -458,8 +458,10 @@ export function initRepoPullRequestReview() {
const $reviewBox = $('.review-box');
if ($reviewBox.length === 1) {
- createCommentEasyMDE($reviewBox.find('textarea'));
- initCompImagePaste($reviewBox);
+ (async () => {
+ await createCommentEasyMDE($reviewBox.find('textarea'));
+ initCompImagePaste($reviewBox);
+ })();
}
// The following part is only for diff views