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

This commit is contained in:
kay delaney 2023-09-29 12:27:37 +01:00 committed by GitHub
parent d55c12c48e
commit dc4091bd34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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();