Skip to content
Snippets Groups Projects
Unverified Commit acce2399 authored by Dalton's avatar Dalton Committed by GitHub
Browse files

Fix setting of selectedSchema in MetadataTablePicker (#14549)

parent 9d10cbde
No related branches found
No related tags found
No related merge requests found
......@@ -19,8 +19,10 @@ export default class MetadataTablePicker extends Component {
constructor(props, context) {
super(props, context);
const { tables, tableId } = props;
const selectedTable = _.findWhere(tables, { id: tableId });
this.state = {
selectedSchema: null,
selectedSchema: selectedTable ? selectedTable.schema_name : null,
showTablePicker: true,
};
}
......
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