Merge branch 'master' of github.com:Lissy93/dashy into FEATURE/sub-items

This commit is contained in:
Alicia Sykes
2022-02-15 11:12:42 +00:00
46 changed files with 963 additions and 309 deletions

View File

@@ -149,7 +149,7 @@ export default {
let sectionToReturn;
const parse = (section) => section.replaceAll(' ', '-').toLowerCase().trim();
allSections.forEach((section) => {
if (parse(sectionTitle) === parse(section.name)) {
if (parse(sectionTitle) === parse(section.name || '')) {
sectionToReturn = [section];
}
});