mirror of
https://github.com/apache/superset.git
synced 2026-04-17 15:15:20 +00:00
[hotfix] iframe viz is broken
This commit is contained in:
@@ -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: () => (
|
||||
|
||||
Reference in New Issue
Block a user