[hotfix] iframe viz is broken

This commit is contained in:
Maxime Beauchemin
2017-04-06 09:11:35 -07:00
parent 7a08cdcb1c
commit 9c99be510b
3 changed files with 11 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
import $ from 'jquery';
import Mustache from 'mustache';
import React, { PropTypes } from 'react';
import { connect } from 'react-redux';
import { Alert, Collapse, Label, Panel } from 'react-bootstrap';
@@ -104,6 +105,14 @@ class ChartContainer extends React.PureComponent {
height: getHeight,
render_template: function (s) {
const context = {
width: this.width,
height: this.height,
};
return Mustache.render(s, context);
},
setFilter: () => {},
getFilters: () => (