Skip to content

Commit

Permalink
Merge pull request #65 from lyft/fixKeplerIssue
Browse files Browse the repository at this point in the history
update Kepler viz transformProps for latest superset-ui
  • Loading branch information
DiggidyDave authored Sep 4, 2019
2 parents 70f368d + 52e984f commit 1602925
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions superset/assets/src/visualizations/Kepler/transformProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,19 @@
* specific language governing permissions and limitations
* under the License.
*/
const NOOP = () => {};

export default function transformProps(chartProps) {
const { formData, height, width, payload, setControlValue } = chartProps;
const { mapboxApiAccessToken, features } = payload.data;
const {
formData,
height,
width,
queryData,
hooks,
} = chartProps;
const { mapboxApiAccessToken, features } = queryData.data;
const { config, autozoom, readonly } = formData;
const { setControlValue = NOOP } = hooks;
return {
height,
width,
Expand Down

0 comments on commit 1602925

Please sign in to comment.