mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-15 17:31:56 +03:00
parent
4a116c793b
commit
788095acba
@ -69,7 +69,7 @@ export const useIntrospectionSchemaRemote = (
|
||||
});
|
||||
};
|
||||
|
||||
useEffect(introspectSchema, [remoteSchemaName, dispatch, headers]);
|
||||
useEffect(introspectSchema, [remoteSchemaName, dispatch]);
|
||||
|
||||
return {
|
||||
schema,
|
||||
|
@ -27,6 +27,8 @@ class ImportMetadata extends Component {
|
||||
this.setState({ isImporting: false });
|
||||
};
|
||||
|
||||
this.setState({ isImporting: true });
|
||||
|
||||
dispatch(replaceMetadataFromFile(fileContent, successCb, errorCb));
|
||||
}
|
||||
|
||||
@ -38,8 +40,6 @@ class ImportMetadata extends Component {
|
||||
const handleImport = e => {
|
||||
e.preventDefault();
|
||||
|
||||
this.setState({ isImporting: true });
|
||||
|
||||
uploadFile(this.importMetadata, 'json');
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user