Skip to content

Commit

Permalink
Bind uiSettings
Browse files Browse the repository at this point in the history
  • Loading branch information
sulemanof committed Nov 18, 2020
1 parent c7b55bd commit 01cf485
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ export const getTimeseriesVisRenderer: (deps: {
>
<TimeseriesVisualization
dateFormat={uiSettings.get('dateFormat')}
getConfig={uiSettings.get}
// it is mandatory to bind uiSettings because of "this" usage inside "get" method
getConfig={uiSettings.get.bind(uiSettings)}
handlers={handlers}
model={config.visParams}
visData={config.visData}
Expand Down

0 comments on commit 01cf485

Please sign in to comment.