|
|
@@ -80,14 +80,21 @@ class TencentConfig extends Component {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
- request(graphqlUrl, SEARCH_SCHEMA, {id: this.props.schemaID}).then(
|
|
|
- data => {
|
|
|
- if(data.schema_by_id.schemaState === 'ok')
|
|
|
- this.setState({
|
|
|
- couldDeploy: true
|
|
|
- });
|
|
|
- }
|
|
|
- );
|
|
|
+ if(this.props.schemaID === '' || this.props.schemaID === undefined) {
|
|
|
+ this.setState({
|
|
|
+ couldDeploy: true
|
|
|
+ });
|
|
|
+ } else {
|
|
|
+ request(graphqlUrl, SEARCH_SCHEMA, {id: this.props.schemaID}).then(
|
|
|
+ data => {
|
|
|
+ if(data.schema_by_id.schemaState === 'ok')
|
|
|
+ this.setState({
|
|
|
+ couldDeploy: true
|
|
|
+ });
|
|
|
+ }
|
|
|
+ );
|
|
|
+ }
|
|
|
+
|
|
|
};
|
|
|
|
|
|
pass = (value, kind) => {
|