Skip to content

Commit

Permalink
Fix legacy defect when upgrading from old version
Browse files Browse the repository at this point in the history
  • Loading branch information
PeteBa committed Nov 6, 2017
1 parent 6847b5d commit afc255d
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion dist/module.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/status_ctrl.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/status_ctrl.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/status_ctrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ export class StatusPluginCtrl extends MetricsPanelCtrl {

//Handle legacy code
_.each(targets, (target) => {
if(target.valueHandler == null) {
if(target.valueHandler == null && target.displayType != null) {
target.valueHandler = target.displayType;
if(target.valueHandler == "Annotation") {
target.valueHandler = "Text Only"
Expand Down

0 comments on commit afc255d

Please sign in to comment.