bug fixes for shifts functionality

This commit is contained in:
2025-07-16 18:38:29 -06:00
parent 330101418c
commit af2e6c7516
2 changed files with 3 additions and 2 deletions

View File

@@ -160,8 +160,9 @@ class ShiftsController {
// Calculate current volunteers dynamically
let currentVolunteers = 0;
let allSignups = { list: [] }; // Initialize with empty list
if (config.nocodb.shiftSignupsSheetId) {
const allSignups = await nocodbService.getAll(config.nocodb.shiftSignupsSheetId);
allSignups = await nocodbService.getAll(config.nocodb.shiftSignupsSheetId);
const confirmedSignups = (allSignups.list || []).filter(signup =>
signup['Shift ID'] === parseInt(shiftId) && signup.Status === 'Confirmed'
);