Skip to content

Commit

Permalink
Skip null settings
Browse files Browse the repository at this point in the history
  • Loading branch information
mgmeyers committed Oct 22, 2021
1 parent fdf5497 commit 9e3eb80
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 9e3eb80

Please sign in to comment.