Skip to content

Commit

Permalink
#34 fix setting initial history_end default value to now
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-gs committed May 26, 2024
1 parent cf991ba commit 138a1aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion map-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class EntityConfig {
this.display = config.display ? config.display : "marker";
this.size = config.size ? config.size : 24;
this.historyStart = config.history_start ? this._convertToAbsoluteDate(config.history_start) : null;
this.historyEnd = config.history_end ? this._convertToAbsoluteDate(config.history_end) : "now";
this.historyEnd = this._convertToAbsoluteDate(config.history_end ?? "now");
this.historyLineColor = config.history_line_color ?? this._generateRandomColor();
this.historyShowDots = config.history_show_dots ?? true;
this.historyShowLines = config.history_show_lines ?? true;
Expand Down

0 comments on commit 138a1aa

Please sign in to comment.