diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-19 17:16:28 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-19 17:16:28 +0300 |
commit | e4384360a16dd9a19d4d2d25d0ef1f2b862ed2a6 (patch) | |
tree | 2fcdfa7dcdb9db8f5208b2562f4b4e803d671243 /app/assets/javascripts/diffs/store/modules | |
parent | ffda4e7bcac36987f936b4ba515995a6698698f0 (diff) |
Add latest changes from gitlab-org/gitlab@16-2-stable-eev16.2.0-rc42
Diffstat (limited to 'app/assets/javascripts/diffs/store/modules')
-rw-r--r-- | app/assets/javascripts/diffs/store/modules/diff_state.js | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/app/assets/javascripts/diffs/store/modules/diff_state.js b/app/assets/javascripts/diffs/store/modules/diff_state.js index 593c28f20ec..d5e1a05f4a5 100644 --- a/app/assets/javascripts/diffs/store/modules/diff_state.js +++ b/app/assets/javascripts/diffs/store/modules/diff_state.js @@ -1,11 +1,4 @@ -import { getCookie } from '~/lib/utils/common_utils'; -import { getParameterValues } from '~/lib/utils/url_utility'; -import { INLINE_DIFF_VIEW_TYPE, DIFF_VIEW_COOKIE_NAME } from '../../constants'; - -const getViewTypeFromQueryString = () => getParameterValues('view')[0]; - -const viewTypeFromCookie = getCookie(DIFF_VIEW_COOKIE_NAME); -const defaultViewType = INLINE_DIFF_VIEW_TYPE; +import { INLINE_DIFF_VIEW_TYPE } from '../../constants'; export default () => ({ isLoading: true, @@ -25,7 +18,7 @@ export default () => ({ coverageLoaded: false, mergeRequestDiffs: [], mergeRequestDiff: null, - diffViewType: getViewTypeFromQueryString() || viewTypeFromCookie || defaultViewType, + diffViewType: INLINE_DIFF_VIEW_TYPE, tree: [], treeEntries: {}, showTreeList: true, |