mirror of
https://github.com/grafana/grafana.git
synced 2025-02-20 11:48:34 -06:00
Angular: Fix issue where panels in collapsed rows were not auto-migrated (#75735)
This commit is contained in:
parent
d55c12c48e
commit
dc4091bd34
@ -184,13 +184,13 @@ export class DashboardModel implements TimeModel {
|
||||
|
||||
// Auto-migrate old angular panels
|
||||
if (options?.autoMigrateOldPanels || !config.angularSupportEnabled || config.featureToggles.autoMigrateOldPanels) {
|
||||
this.panels.forEach((p) => {
|
||||
for (const p of this.panelIterator()) {
|
||||
const newType = autoMigrateAngular[p.type];
|
||||
if (!p.autoMigrateFrom && newType) {
|
||||
p.autoMigrateFrom = p.type;
|
||||
p.type = newType;
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
this.addBuiltInAnnotationQuery();
|
||||
|
Loading…
Reference in New Issue
Block a user