Fix intro message not getting cleared when adding new item. Closes #2158

This commit is contained in:
Adomas Venčkauskas 2021-08-25 18:08:07 +03:00
parent 13f2c57196
commit da7527e384

View file

@ -345,7 +345,7 @@ var ItemTree = class ItemTree extends LibraryTree {
}
async clearItemsPaneMessage() {
const shouldRerender = !this._itemsPaneMessage;
const shouldRerender = this._itemsPaneMessage;
this._itemsPaneMessage = null;
return shouldRerender && new Promise(resolve => this.forceUpdate(resolve));
}