aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--web_src/js/index.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/web_src/js/index.js b/web_src/js/index.js
index 9f016ca84a..8818511e32 100644
--- a/web_src/js/index.js
+++ b/web_src/js/index.js
@@ -1098,8 +1098,10 @@ async function initRepository() {
}, (data) => {
if (data.length === 0 || data.content.length === 0) {
$renderContent.html($('#no-content').html());
+ $rawContent.text('');
} else {
$renderContent.html(data.content);
+ $rawContent.text($textarea.val());
}
const $content = $segment;
if (!$content.find('.dropzone-attachments').length) {