Skip to content
Snippets Groups Projects
Commit 9aa51364 authored by Tom Robinson's avatar Tom Robinson
Browse files

Hide hidden tables in data ref

parent d1b590dd
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