diff options
author | Denys Mishunov <dmishunov@gitlab.com> | 2019-07-19 14:18:31 +0300 |
---|---|---|
committer | Denys Mishunov <dmishunov@gitlab.com> | 2019-07-19 15:36:18 +0300 |
commit | cd638abbbf86e3129112b4c4066c094061023118 (patch) | |
tree | d368e240334a634d5cf3caee6e04d54ab75d1bb3 /app/assets/javascripts/ide/stores | |
parent | 9f70a03b44b117242d6a1de04dfc6e4e43797633 (diff) |
Fixed regression for re-naming files in WebIDE
Diffstat (limited to 'app/assets/javascripts/ide/stores')
-rw-r--r-- | app/assets/javascripts/ide/stores/mutations/file.js | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/app/assets/javascripts/ide/stores/mutations/file.js b/app/assets/javascripts/ide/stores/mutations/file.js index a52f1e235ed..1442ea7dbfa 100644 --- a/app/assets/javascripts/ide/stores/mutations/file.js +++ b/app/assets/javascripts/ide/stores/mutations/file.js @@ -43,10 +43,14 @@ export default { [stateEntry, stagedFile, openFile, changedFile].forEach(f => { if (f) { - Object.assign(f, convertObjectPropsToCamelCase(data, { dropKeys: ['raw', 'baseRaw'] }), { - raw: (stateEntry && stateEntry.raw) || null, - baseRaw: null, - }); + Object.assign( + f, + convertObjectPropsToCamelCase(data, { dropKeys: ['path', 'name', 'raw', 'baseRaw'] }), + { + raw: (stateEntry && stateEntry.raw) || null, + baseRaw: null, + }, + ); } }); }, |