generated from Seekra/repository-template
Feat(settings): add renderer for settings configuration #142
@@ -21,9 +21,7 @@ export const getSetting = function getSetting (name, settings) {
|
||||
export const getSettingRecursively = function getSettingRecursively (sectionPath, settings) {
|
||||
|
jakob.scheid marked this conversation as resolved
Outdated
|
||||
const oneSettingsLevel = function oneSettingsLevel (cursor, acc) {
|
||||
const setting = getSetting(cursor[0], acc.content);
|
||||
if (!setting) {
|
||||
return;
|
||||
};
|
||||
if (!setting) return;
|
||||
|
jakob.scheid marked this conversation as resolved
Outdated
jakob.scheid
commented
Put this in one line. Put this in one line.
|
||||
|
||||
if (setting.type === undefined) setting.type = 'section';
|
||||
if (setting.type === 'section') {
|
||||
|
||||
Reference in New Issue
Block a user
It makes more sense to pass the section path as an array.