diff options
author | Phil Hughes <me@iamphill.com> | 2019-03-07 12:35:07 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2019-03-07 12:35:07 +0000 |
commit | 6a3a28bfdec6feeebd880d048f8577906b48aaa7 (patch) | |
tree | cb924cfa108106d21ff5d400a0a83f20ff8ec17c /app/assets/javascripts/blob_edit | |
parent | 45b3c5420c1a45595211f941bac23ad9f2188af7 (diff) | |
download | gitlab-ce-6a3a28bfdec6feeebd880d048f8577906b48aaa7.tar.gz |
Fixed the blob editor deleting all content for files
This only happens for files that the path consists of only numbers
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/58578
Diffstat (limited to 'app/assets/javascripts/blob_edit')
-rw-r--r-- | app/assets/javascripts/blob_edit/blob_bundle.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/blob_edit/blob_bundle.js b/app/assets/javascripts/blob_edit/blob_bundle.js index 5f64175362d..6aaf5bf7296 100644 --- a/app/assets/javascripts/blob_edit/blob_bundle.js +++ b/app/assets/javascripts/blob_edit/blob_bundle.js @@ -13,7 +13,7 @@ export default () => { if (editBlobForm.length) { const urlRoot = editBlobForm.data('relativeUrlRoot'); const assetsPath = editBlobForm.data('assetsPrefix'); - const filePath = editBlobForm.data('blobFilename'); + const filePath = `${editBlobForm.data('blobFilename')}`; const currentAction = $('.js-file-title').data('currentAction'); const projectId = editBlobForm.data('project-id'); const isMarkdown = editBlobForm.data('is-markdown'); |