mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Plugins: Allow async panel migrations (#73782)
* Plugins: Allow async panel migrations * comment
This commit is contained in:
@@ -30,7 +30,7 @@ export function initPanelState(panel: PanelModel): ThunkResult<Promise<void>> {
|
||||
}
|
||||
|
||||
if (!panel.plugin) {
|
||||
panel.pluginLoaded(plugin);
|
||||
await panel.pluginLoaded(plugin);
|
||||
}
|
||||
|
||||
dispatch(panelModelAndPluginReady({ key: panel.key, plugin }));
|
||||
@@ -120,7 +120,7 @@ export function changeToLibraryPanel(panel: PanelModel, libraryPanel: LibraryEle
|
||||
plugin = await dispatch(loadPanelPlugin(newPluginId));
|
||||
}
|
||||
|
||||
panel.pluginLoaded(plugin);
|
||||
await panel.pluginLoaded(plugin);
|
||||
panel.generateNewKey();
|
||||
|
||||
await dispatch(panelModelAndPluginReady({ key: panel.key, plugin }));
|
||||
|
||||
Reference in New Issue
Block a user