Skip to content
Snippets Groups Projects
Commit 54665756 authored by Allen Gilliland's avatar Allen Gilliland
Browse files

fixes #2159 , construct the new rows query from the data reference in a more appropriate fashion.

parent ccc054ec
No related branches found
No related tags found
No related merge requests found
import React, { Component, PropTypes } from "react";
import DataReferenceQueryButton from './DataReferenceQueryButton.jsx';
import { createQuery } from "metabase/lib/query";
import { foreignKeyCountsByOriginTable } from 'metabase/lib/schema_metadata';
import inflection from 'inflection';
import cx from "classnames";
......@@ -46,12 +47,7 @@ export default class DataReferenceTable extends Component {
}
setQueryAllRows() {
var query;
query = this.props.setDatabaseFn(this.state.table.db_id);
query = this.props.setSourceTableFn(this.state.table.id);
query.query.aggregation = ["rows"];
query.query.breakout = [];
query.query.filter = [];
var query = createQuery("query", this.state.table.db_id, this.state.table.id);
this.props.setQueryFn(query);
this.props.runQueryFn();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment