From d80db96ae505c284d426fd068ac33d6b2369ece5 Mon Sep 17 00:00:00 2001 From: Michael Dickson Date: Tue, 3 Sep 2024 10:49:04 -0400 Subject: [PATCH] fix bug by updating variable name. delete comment --- blocks/gmo-program-details/gmo-program-details.js | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/blocks/gmo-program-details/gmo-program-details.js b/blocks/gmo-program-details/gmo-program-details.js index 232e12a..22430cf 100644 --- a/blocks/gmo-program-details/gmo-program-details.js +++ b/blocks/gmo-program-details/gmo-program-details.js @@ -1214,19 +1214,9 @@ function refreshCalendar(period, view) { block.querySelector('.calendar-wrapper').remove(); block.querySelector('.filter-dropdown-content').remove(); - buildCalendar(calendarDeliverables, block, view, deliverableMapping, period); + buildCalendar(calendarDeliverables, block, view, deliverableMappings, period); } -// ? -/* -function lookupType(rawText) { - const typeMatch = deliverableMapping.filter(item => item.value === rawText); - const typeText = typeMatch.length > 0 ? typeMatch[0].text : rawText; - return typeText; -} - */ - - function calendarYears(startYear, endYear) { let years = []; for (let year = startYear; year <= endYear; year++) {