提交 20a1b3b4 编写于 作者: M Martin Aeschlimann

Cannot read property 'dark' of null in colorRegistry

上级 f383d1fd
......@@ -90,7 +90,7 @@ class ColorRegistry implements IColorRegistry {
public resolveDefaultColor(id: ColorIdentifier, theme: ITheme): Color {
let colorDesc = this.colorsById[id];
if (colorDesc) {
if (colorDesc && colorDesc.defaults) {
let colorValue = colorDesc.defaults[theme.type];
return resolveColorValue(colorValue, theme);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册