Only suggest up to 20 shifts
This commit is contained in:
parent
a9554e265f
commit
c8b0d59508
@ -105,6 +105,9 @@ function findExactMatches() {
|
|||||||
shifts.push(shift);
|
shifts.push(shift);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Only suggest up to 20 shifts
|
||||||
|
shifts = shifts.slice(0, 20);
|
||||||
|
|
||||||
txtSuggested.textContent = "Suggested shifts: ";
|
txtSuggested.textContent = "Suggested shifts: ";
|
||||||
if (shifts.length === 0) {
|
if (shifts.length === 0) {
|
||||||
txtSuggested.textContent += "none available";
|
txtSuggested.textContent += "none available";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user