diff --git a/src/main.ts b/src/main.ts index ddb660b..2be025a 100644 --- a/src/main.ts +++ b/src/main.ts @@ -86,11 +86,14 @@ export default class CSSSettingsPlugin extends Plugin { } ) as ParsedCSSSettings; + settings.settings = settings.settings.filter(setting => setting); + if ( typeof settings === "object" && settings.name && settings.id && - settings.settings + settings.settings && + settings.settings.length ) { settingsList.push(settings); }