[v10.0.x] Angular: Fix issue where panels in collapsed rows were not auto-migrated (#75736)

Angular: Fix issue where panels in collapsed rows were not auto-migrated (#75735)

(cherry picked from commit dc4091bd34)

Co-authored-by: kay delaney <45561153+kaydelaney@users.noreply.github.com>
This commit is contained in:
grafana-delivery-bot[bot]
2023-09-29 14:39:09 +03:00
committed by GitHub
co-authored by kay delaney
parent e39fa14ee3
commit d34be5f037
@@ -179,13 +179,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();