Fixing array direction, adding simple render test, fixes #15478

Fixed unit test and updated gauge
Added migration for threshold order
This commit is contained in:
Peter Holmberg
2019-02-18 15:31:47 +01:00
committed by Torkel Ödegaard
parent 2afd3cf5aa
commit 93e8edfddd
6 changed files with 84 additions and 57 deletions

View File

@@ -399,6 +399,12 @@ export class DashboardMigrator {
prefix: panel.options.prefix,
suffix: panel.options.suffix,
};
// correct order
if (panel.options.thresholds) {
panel.options.thresholds.reverse();
}
// this options prop was due to a bug
delete panel.options.options;
delete panel.options.unit;