Commit ba3d5e65 authored by Phil Hughes's avatar Phil Hughes

fixed icon not showing for parents

parent efdd9e1a
......@@ -43,7 +43,7 @@ export const collapseButtonTooltip = state =>
export const hasMergeRequest = state => !!state.currentMergeRequestId;
export const getChangesInFolder = state => path => {
const filePatchMatches = f => f.path.replace(new RegExp(`/${f.name}$`), '') === path;
const filePatchMatches = f => f.path.replace(new RegExp(`/${f.name}$`), '').indexOf(path) === 0;
const changedFilesCount = state.changedFiles.filter(f => filePatchMatches(f)).length;
const stagedFilesCount = state.stagedFiles.filter(
f =>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment