Commit 11f5484f authored by Phil Hughes's avatar Phil Hughes Committed by Gary Holtz

Fixed failing Jest spec

parent 7d742a21
......@@ -11,7 +11,7 @@ export const diffCompareDropdownTargetVersions = (state, getters) => {
// startVersion only exists if the user has selected a version other
// than "base" so if startVersion is null then base must be selected
const defaultMergeRefForDiffs = window.gon?.features?.defaultMergeRefForDiffs;
const defaultMergeRefForDiffs = window.gon?.features?.defaultMergeRefForDiffs || false;
const diffHeadParam = getParameterByName('diff_head');
const diffHead = parseBoolean(diffHeadParam) || (!diffHeadParam && defaultMergeRefForDiffs);
const isBaseSelected = !state.startVersion && !diffHead;
......
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