Skip to content

Commit cfcd5ec

Browse files
committed
Fixed accidental initialize of the review textarea.
1 parent 26d65b2 commit cfcd5ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

web_src/js/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1666,6 +1666,10 @@ $.fn.getCursorPosition = function () {
16661666
};
16671667

16681668
function setCommentSimpleMDE($editArea) {
1669+
if ($editArea.length === 0) {
1670+
return null;
1671+
}
1672+
16691673
const simplemde = new SimpleMDE({
16701674
autoDownloadFontAwesome: false,
16711675
element: $editArea[0],

0 commit comments

Comments
 (0)