Skip to content

Commit

Permalink
Only set limitsValues if not empty
Browse files Browse the repository at this point in the history
  • Loading branch information
jmthomas committed Mar 16, 2023
1 parent 6f10350 commit aa4f4c0
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1284,9 +1284,11 @@ export default {
// [] matches 'NONE' in GraphEditItemDialog
item.limits = []
} else {
// If somehow we have more than one limits
// the last one wins which is fine
this.limitsValues = item.limits
if (item.limits.length > 0) {
// If somehow we have more than one limits
// the last one wins which is fine
this.limitsValues = item.limits
}
}
this.colorIndex++
if (this.colorIndex === this.colors.length) {
Expand Down

0 comments on commit aa4f4c0

Please sign in to comment.