diff --git a/src/modules/GrantsInterface.ts b/src/modules/GrantsInterface.ts index 688fa24..97d3fd3 100644 --- a/src/modules/GrantsInterface.ts +++ b/src/modules/GrantsInterface.ts @@ -117,7 +117,9 @@ export default class GrantsInterface { const table = document.createElement('table'); table.className = 'consent-manager--table'; - for (const category of this.client.config.categories) { + for (const [index, category] of Object.entries( + this.client.config.categories + )) { const row = document.createElement('tr'); row.className = 'consent-manager--row'; @@ -126,14 +128,19 @@ export default class GrantsInterface { const checked = category.required || status ? 'checked' : ''; row.innerHTML = `