diff options
author | Phil Hughes <me@iamphill.com> | 2018-09-03 15:56:30 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-09-07 10:24:42 +0300 |
commit | 3f6500383fb6bc66cb695592dd48e65a28a0d1b5 (patch) | |
tree | 737f6a5b8b5c62c0b899b77b0bf8e67ee282e03b /app/assets/javascripts/ide/stores/mutations | |
parent | 5b84c2fbc270a0072ddf067742ab268926eb087e (diff) |
fixed some bugs around with the template dropdowns
Diffstat (limited to 'app/assets/javascripts/ide/stores/mutations')
-rw-r--r-- | app/assets/javascripts/ide/stores/mutations/file.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/ide/stores/mutations/file.js b/app/assets/javascripts/ide/stores/mutations/file.js index 66f29824898..6ca246c1d63 100644 --- a/app/assets/javascripts/ide/stores/mutations/file.js +++ b/app/assets/javascripts/ide/stores/mutations/file.js @@ -55,7 +55,7 @@ export default { f => f.path === file.path && f.pending && !(f.tempFile && !f.prevPath), ); - if (file.tempFile) { + if (file.tempFile && file.content === '') { Object.assign(state.entries[file.path], { content: raw, }); |