🔥 Remove no-longer needed prop attrs

This commit is contained in:
Alicia Sykes
2021-10-30 13:23:54 +01:00
parent 6f3570eed2
commit 513b1cd955
4 changed files with 11 additions and 13 deletions

View File

@@ -184,7 +184,7 @@ export default {
findSingleSection: (allSections, sectionTitle) => {
if (!sectionTitle) return undefined;
let sectionToReturn;
const parse = (section) => section.replace(' ', '-').toLowerCase().trim();
const parse = (section) => section.replaceAll(' ', '-').toLowerCase().trim();
allSections.forEach((section) => {
if (parse(sectionTitle) === parse(section.name)) {
sectionToReturn = [section];