diff options
author | Phil Hughes <me@iamphill.com> | 2018-05-01 15:09:07 +0100 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-05-01 15:09:07 +0100 |
commit | 5d90c7065a1fc8aa147c93d2ff0944d58bcc1fbd (patch) | |
tree | 1e9e66bf6c71fff8490f11f2d8d941941b2767b2 /app/assets/javascripts/ide/stores/getters.js | |
parent | 55b91d94415e0323ec7b2ff63df3f73d532b6971 (diff) | |
download | gitlab-ce-5d90c7065a1fc8aa147c93d2ff0944d58bcc1fbd.tar.gz |
fixed getters
Diffstat (limited to 'app/assets/javascripts/ide/stores/getters.js')
-rw-r--r-- | app/assets/javascripts/ide/stores/getters.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/ide/stores/getters.js b/app/assets/javascripts/ide/stores/getters.js index 212974c00fe..a93d29fd865 100644 --- a/app/assets/javascripts/ide/stores/getters.js +++ b/app/assets/javascripts/ide/stores/getters.js @@ -1,5 +1,5 @@ import { __ } from '~/locale'; -import { getChangesCountForState, filePathMatches } from './utils'; +import { getChangesCountForFiles, filePathMatches } from './utils'; export const activeFile = state => state.openFiles.find(file => file.active) || null; @@ -69,10 +69,10 @@ export const getChangesInFolder = state => path => { }; export const getUnstagedFilesCountForPath = state => path => - getChangesCountForState(state.changesFiles, path); + getChangesCountForFiles(state.changedFiles, path); export const getStagedFilesCountForPath = state => path => - getChangesCountForState(state.stagedFiles, path); + getChangesCountForFiles(state.stagedFiles, path); // prevent babel-plugin-rewire from generating an invalid default during karma tests export default () => {}; |