Properly remove persistentWidget from WidgetStore

Fixes #17226
This commit is contained in:
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

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 });
}