Fix issue with this.embeddableConfigChangeListeners being undefined (#18611)

This commit is contained in:
Stacey Gammon 2018-04-26 14:06:23 -04:00 committed by GitHub
parent 608cd39d25
commit 2f52a8e52c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -89,9 +89,10 @@ export class DashboardStateManager {
// Always start out with all panels minimized when a dashboard is first loaded.
store.dispatch(minimizePanel());
store.dispatch(setPanels({}));
this.embeddableConfigChangeListeners = {};
this._pushAppStateChangesToStore();
this.embeddableConfigChangeListeners = {};
this.changeListeners = [];
this.unsubscribe = store.subscribe(() => this._handleStoreChanges());