[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:
co-authored by
kay delaney
parent
cdbb2301c1
commit
64e1d6aa13
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user