Fix compilation error

This commit is contained in:
Paulo Gustavo Veiga 2022-02-18 08:23:57 -08:00
parent df6edba21b
commit 859fcad6a6

View File

@ -253,18 +253,20 @@ class MultilineTextEditor extends Events {
}
close(update: boolean): void {
if (this.isVisible() && this._topic) {
const actionDispatcher = ActionDispatcher.getInstance();
if (this.isVisible()) {
if (update) {
this._updateModel();
}
// Let make the visible text in the node ...
this._topic.getTextShape().setVisibility(true);
// Remove it form the screen ...
this._containerElem.remove();
this._containerElem = null;
}
if (this._topic) {
this._topic.getTextShape().setVisibility(true);
this._topic = null;
}
}
}
}
export default MultilineTextEditor;