🔥 Remove no-longer needed prop attrs
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user