提交 64df2e0c 编写于 作者: I isidor

null guard

fixes #49539
上级 ab38e621
......@@ -57,7 +57,7 @@ export class ColorPickerHeader extends Disposable {
}
private onDidChangePresentation(): void {
this.pickedColorNode.textContent = this.model.presentation.label;
this.pickedColorNode.textContent = this.model.presentation ? this.model.presentation.label : '';
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册