summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ide
diff options
context:
space:
mode:
authorDenys Mishunov <dmishunov@gitlab.com>2019-08-12 18:13:12 +0200
committerDenys Mishunov <dmishunov@gitlab.com>2019-08-12 18:19:38 +0200
commit4882303760c9f22112985f78746f2416b701a47b (patch)
treee31ee10ca4df5b7dba10a93a5ddc4a1c1f65e005 /app/assets/javascripts/ide
parent7a22b4bae55ba3afcc6fc961e6a0aeb47c7bd937 (diff)
downloadgitlab-ce-4882303760c9f22112985f78746f2416b701a47b.tar.gz
Fixed deletion of directories in Web IDE64677-delete-directory-webide
Diffstat (limited to 'app/assets/javascripts/ide')
-rw-r--r--app/assets/javascripts/ide/stores/utils.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/ide/stores/utils.js b/app/assets/javascripts/ide/stores/utils.js
index 04e86afb268..52200ce7847 100644
--- a/app/assets/javascripts/ide/stores/utils.js
+++ b/app/assets/javascripts/ide/stores/utils.js
@@ -129,7 +129,7 @@ export const commitActionForFile = file => {
export const getCommitFiles = stagedFiles =>
stagedFiles.reduce((acc, file) => {
- if (file.moved) return acc;
+ if (file.moved || file.type === 'tree') return acc;
return acc.concat({
...file,