xy há 7 anos atrás
pai
commit
f9e17e5f6c
1 ficheiros alterados com 3 adições e 1 exclusões
  1. 3 1
      src/components/common/schema/Schema.jsx

+ 3 - 1
src/components/common/schema/Schema.jsx

@@ -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