Skip to content

Commit

Permalink
Initial color bug
Browse files Browse the repository at this point in the history
  • Loading branch information
turner committed Nov 25, 2024
1 parent 7091891 commit 0e96bd3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions js/trackBase.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ const fixColor = (colorString) => {
*/
class TrackBase {

static defaultColor = 'rgb(150,150,150)'

static defaults = {
height: 50,
autoHeight: false,
Expand Down
2 changes: 1 addition & 1 deletion js/trackView.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class TrackView {
this.track.initialTrackColor = {}
}

const color = this.track.color || this.track.defaultColor
const color = this.track.color || this.track.constructor.defaultColor
if (StringUtils.isString(color)) {

if (undefined === this.track.initialTrackColor['color']) {
Expand Down

0 comments on commit 0e96bd3

Please sign in to comment.