|
|
@@ -276,6 +276,7 @@ class Schema extends Component {
|
|
|
page={this.state.page}
|
|
|
pageSize={this.state.pageSize}
|
|
|
fetchData={this.fetchData}
|
|
|
+ location={this.props.location}
|
|
|
/>
|
|
|
}
|
|
|
|
|
|
@@ -315,6 +316,7 @@ class Schema extends Component {
|
|
|
pageSize={this.state.pageSize}
|
|
|
userID={userID}
|
|
|
fetchData={this.fetchData}
|
|
|
+ location={this.props.location}
|
|
|
/>
|
|
|
}
|
|
|
</span>
|
|
|
@@ -558,7 +560,7 @@ class DeleteTableButton extends Component {
|
|
|
return 'error';
|
|
|
|
|
|
let schemaData = data;
|
|
|
- let referenceID = data.schema_by_id.reference;
|
|
|
+ let referenceID = data.schema_by_id ? data.schema_by_id.reference : this.props.location.state.reference;
|
|
|
|
|
|
return (
|
|
|
<Mutation
|