Fix getFontStyle error.

This commit is contained in:
Paulo Gustavo Veiga 2022-10-07 21:33:27 -07:00
parent 49de0b4945
commit 99cec1bd54

View File

@ -249,7 +249,7 @@ export class NodePropertyValueModelBuilder {
getFontStyleModel(): NodePropertyValueModel {
if (!this.fontStyleModel)
this.fontStyleModel = {
getValue: () => this.selectedTopic().getFontStyle(),
getValue: () => this.selectedTopic()?.getFontStyle(),
switchValue: () => designer.changeFontStyle(),
};
return this.fontStyleModel;