Skip to content

Commit

Permalink
Merge pull request #460 from node-red-contrib-themes/monaco-theme-nul…
Browse files Browse the repository at this point in the history
…l-values
  • Loading branch information
bonanitech authored Jul 8, 2024
2 parents 58189cd + 8d424a1 commit 01c78e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/build-theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -227,9 +227,9 @@ async function buildTheme(themeName) {

if (typeof monacoTheme === 'object') {
for (const entry of Object.entries(monacoTheme.colors)) {
const [key, value] = entry;
if (!monacoExposedColors.includes(key)) {
delete monacoTheme.colors[key];
const [key, value] = entry
if (!monacoExposedColors.includes(key) || entry[1] === null) {
delete monacoTheme.colors[key]
}
}
}
Expand Down

0 comments on commit 01c78e4

Please sign in to comment.