Merge branch 'master' of github.com:Lissy93/dashy into FEATURE/sub-items
This commit is contained in:
@@ -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];
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user