MCPcopy Create free account
hub / github.com/Rello/analytics / refreshIgnored

Function refreshIgnored

js/flexible.js:270–277  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

268 ignored.className = 'userGuidance flexibleIgnoredColumns';
269 container.appendChild(ignored);
270 const refreshIgnored = () => {
271 const used = new Set([...container.querySelectorAll('[data-flexible-column-ref]')]
272 .map(select => select.value).filter(value => value !== '').map(Number));
273 const names = sourceHeader.filter((header, index) => !used.has(index));
274 ignored.textContent = names.length
275 ? t('analytics', 'Ignored source columns') + ': ' + names.join(', ')
276 : '';
277 };
278 container.querySelectorAll('select').forEach(select => select.addEventListener('change', refreshIgnored));
279 refreshIgnored();
280 },

Callers 1

flexible.jsFile · 0.85

Calls 4

mapMethod · 0.80
filterMethod · 0.80
hasMethod · 0.80
tFunction · 0.50

Tested by

no test coverage detected