Skip to content

Commit

Permalink
Fix error on missing colors (#17)
Browse files Browse the repository at this point in the history
Fixes an error when a color is not in the global colors
  • Loading branch information
ntkoopman authored May 20, 2021
1 parent b6f32f6 commit 589c76f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/util/groupMethods.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ function generateOptions(propName, keys, config, isNegative = false) {
case 'ringOffsetColor':
const options = [];
keys.forEach((k) => {
const color = config.theme.colors[k];
const color = config.theme[propName]?.[k] || config.theme.colors[k];
if (typeof color === 'string') {
options.push(escapeSpecialChars(k));
} else {
Expand Down

0 comments on commit 589c76f

Please sign in to comment.