feat: Set default snapshot lines threshold to 20 when undefined

This commit is contained in:
Kiril Videlov 2024-05-18 16:49:20 +02:00
parent ead482d4e5
commit 92951b504e

View File

@ -10,7 +10,7 @@
const projectService = getContext(ProjectService);
const project = getContext(Project);
let snaphotLinesThreshold = project?.snapshot_lines_threshold;
let snaphotLinesThreshold = project?.snapshot_lines_threshold || 20; // when undefined, the default is 20
let allowForcePushing = project?.ok_with_force_push;
let omitCertificateCheck = project?.omit_certificate_check;