File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/frontend/components/timeline/lib Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ class TimelineComponent extends Component {
1717 initTimeline ( ) {
1818 const $container = $ ( this . element ) . find ( '.timeline__visualization' )
1919 const records_base64 = $container . data ( 'records' )
20- const json = Buffer . from ( records_base64 , 'base64' )
20+ const json = atob ( records_base64 )
2121 const dataset = JSON . parse ( json )
2222 this . injectContrastingColor ( dataset )
2323
2424 const items = new DataSet ( dataset )
2525 let groups = $container . data ( 'groups' )
26- const json_group = Buffer . from ( groups , 'base64' )
26+ const json_group = atob ( groups )
2727 groups = JSON . parse ( json_group )
2828 const is_dashboard = ! ! $container . data ( 'dashboard' )
2929 const layout_identifier = $ ( 'body' ) . data ( 'layout-identifier' )
You can’t perform that action at this time.
0 commit comments