diff --git a/ecc/blocks/attendee-management-table/attendee-management-table.js b/ecc/blocks/attendee-management-table/attendee-management-table.js index e11665b0..db788cec 100644 --- a/ecc/blocks/attendee-management-table/attendee-management-table.js +++ b/ecc/blocks/attendee-management-table/attendee-management-table.js @@ -93,6 +93,8 @@ const ATTENDEE_ATTR_MAP = [ }, ]; +const stickyColumns = ['registrationStatus', 'checkedIn']; + const FILTER_MAP = { companyName: [], jobTitle: [], @@ -253,7 +255,7 @@ async function populateRow(props, index) { ATTENDEE_ATTR_MAP.forEach(({ key, fallback }, i, arr) => { const td = createTag('td', {}, attendee[key] || fallback, { parent: row }); - if (['type', 'checkedIn'].includes(key)) { + if (stickyColumns.includes(key)) { td.classList.add(`sticky-right-${arr.length - i}`, 'actions'); } }); @@ -348,7 +350,7 @@ function buildTableHeaders(props, config) { th.append(getIcon('chev-down'), getIcon('chev-up')); - if (['type', 'checkedIn'].includes(key)) th.classList.add('actions', `sticky-right-${arr.length - i}`); + if (stickyColumns.includes(key)) th.classList.add('actions', `sticky-right-${arr.length - i}`); th.classList.add('sortable'); th.dataset.field = key; });