diff options
Diffstat (limited to 'app/assets/javascripts/diffs/utils')
-rw-r--r-- | app/assets/javascripts/diffs/utils/tree_worker_utils.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/assets/javascripts/diffs/utils/tree_worker_utils.js b/app/assets/javascripts/diffs/utils/tree_worker_utils.js index 8689809cfa9..e1e3495a51f 100644 --- a/app/assets/javascripts/diffs/utils/tree_worker_utils.js +++ b/app/assets/javascripts/diffs/utils/tree_worker_utils.js @@ -1,4 +1,3 @@ -import { truncatePathMiddleToLength } from '~/lib/utils/text_utility'; import { TREE_TYPE } from '../constants'; export const getLowestSingleFolder = (folder) => { @@ -28,7 +27,7 @@ export const getLowestSingleFolder = (folder) => { const { path, tree } = getFolder(folder, [folder.name]); return { - path: truncatePathMiddleToLength(path.join('/'), 40), + path: path.join('/'), treeAcc: tree.length ? tree[tree.length - 1].tree : null, }; }; @@ -86,6 +85,7 @@ export const generateTreeList = (files) => { Object.assign(entry, { changed: true, diffLoaded: false, + diffLoading: false, filePaths: { old: file.old_path, new: file.new_path, |