Merge pull request #3783 from gitbutlerapp/update-snapshot-threshold-logic-branch

feat: Set default snapshot lines threshold to 20 when undefined
This commit is contained in:
Kiril Videlov 2024-05-18 16:50:55 +02:00 committed by GitHub
commit a9e991c627
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;