Skip to content

Commit

Permalink
fix(core/reports): missing props in heat map widget instance
Browse files Browse the repository at this point in the history
  • Loading branch information
trik committed May 31, 2022
1 parent a2a5674 commit 7ccd7d6
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ export function widgetToWidgetInstance(
wi.features = (typeof widget.features === 'string'
? JSON.parse(widget.features)
: widget.features) || {type: 'FeatureCollection', features: []};
wi.values =
(typeof widget.values === 'string' ? JSON.parse(widget.values) : widget.values) || [];
wi.startColor = widget.startColor || '#ffeb3b';
wi.endColor = widget.endColor || '#f44336';
wi.highlightColor = widget.highlightColor || '#009688';
Expand Down

0 comments on commit 7ccd7d6

Please sign in to comment.