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 { close(update: boolean): void {
if (this.isVisible() && this._topic) { if (this.isVisible()) {
const actionDispatcher = ActionDispatcher.getInstance(); if (update) {
this._updateModel(); this._updateModel();
} }
// Let make the visible text in the node ...
this._topic.getTextShape().setVisibility(true);
// Remove it form the screen ... // Remove it form the screen ...
this._containerElem.remove(); this._containerElem.remove();
this._containerElem = null; this._containerElem = null;
this._topic = null; }
if (this._topic) {
this._topic.getTextShape().setVisibility(true);
this._topic = null;
}
} }
} }
}
export default MultilineTextEditor; export default MultilineTextEditor;