summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/ide/stores/mutations/file.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/ide/stores/mutations/file.js')
-rw-r--r--app/assets/javascripts/ide/stores/mutations/file.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/assets/javascripts/ide/stores/mutations/file.js b/app/assets/javascripts/ide/stores/mutations/file.js
index 915126f10eb..e9945055e6f 100644
--- a/app/assets/javascripts/ide/stores/mutations/file.js
+++ b/app/assets/javascripts/ide/stores/mutations/file.js
@@ -5,6 +5,13 @@ export default {
Object.assign(state.entries[path], {
active,
});
+
+ Object.assign(state, {
+ pendingTabs: state.pendingTabs.map(f => ({
+ ...f,
+ active: false,
+ })),
+ });
},
[types.TOGGLE_FILE_OPEN](state, path) {
Object.assign(state.entries[path], {