Fix EasyMDE image paste bug during refactoring (#18207)

This commit is contained in:
wxiaoguang 2022-01-08 21:33:32 +08:00 committed by GitHub
parent 4f7764561a
commit 70d7475356
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 4 deletions

View file

@ -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