diff options
author | Phil Hughes <me@iamphill.com> | 2018-04-05 21:41:07 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-04-05 21:41:07 +0300 |
commit | 2aaa0222bfeb88699553a6c9dae48a642755259b (patch) | |
tree | 46f02a150d2269f5d3f1c589bdc5bdf73e04e17b /app/assets/javascripts/ide/stores/utils.js | |
parent | b61aa6f813a90aa104cb92dca687647171476337 (diff) |
fixed delayed update viewer
fixed `key` not being set to correct value
Diffstat (limited to 'app/assets/javascripts/ide/stores/utils.js')
-rw-r--r-- | app/assets/javascripts/ide/stores/utils.js | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/assets/javascripts/ide/stores/utils.js b/app/assets/javascripts/ide/stores/utils.js index 597fa3a1c10..00686bdadce 100644 --- a/app/assets/javascripts/ide/stores/utils.js +++ b/app/assets/javascripts/ide/stores/utils.js @@ -88,8 +88,7 @@ export const decorateData = entity => { export const findEntry = (tree, type, name, prop = 'name') => tree.find(f => f.type === type && f[prop] === name); -export const findIndexOfFile = (state, file) => - state.findIndex(f => f.path === file.path); +export const findIndexOfFile = (state, file) => state.findIndex(f => f.path === file.path); export const setPageTitle = title => { document.title = title; |