Properly remove persistentWidget from WidgetStore

Fixes #17226
pull/21833/head
Dariusz Niemczyk 2021-08-19 06:42:38 +02:00
parent 5553e40f0c
commit c8e4e76100
No known key found for this signature in database
GPG Key ID: 3E8DC619E3C59A05
1 changed files with 1 additions and 0 deletions

View File

@ -218,6 +218,7 @@ export default class AppTile extends React.Component {
// Delete the widget from the persisted store for good measure.
PersistedElement.destroyElement(this._persistKey);
ActiveWidgetStore.destroyPersistentWidget(this.props.app.id);
if (this._sgWidget) this._sgWidget.stop({ forceDestroy: true });
}