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

Merge pull request #1125 from metabase/data_ref_hidden_tables

Hide hidden tables in data reference
parents 84e71841 9aa51364
No related branches found
No related tags found
No related merge requests found
import inflection from 'inflection';
import { isQueryable } from "metabase/lib/table";
import inflection from 'inflection';
import cx from "classnames";
export default React.createClass({
......@@ -25,8 +26,8 @@ export default React.createClass({
this.state.databases[database.id] = null; // null indicates loading
this.props.Metabase.db_tables({
'dbId': database.id
}).$promise.then((db) => {
this.state.databases[database.id] = db;
}).$promise.then((tables) => {
this.state.databases[database.id] = tables.filter(isQueryable);
this.setState({ databases: this.state.databases });
});
}
......
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