console: fix import metadata button text (close #5386) (#5415)

This commit is contained in:
Kentaro Suzuki 2020-07-21 03:46:45 +09:00 committed by GitHub
parent 4a116c793b
commit 788095acba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -69,7 +69,7 @@ export const useIntrospectionSchemaRemote = (
});
};
useEffect(introspectSchema, [remoteSchemaName, dispatch, headers]);
useEffect(introspectSchema, [remoteSchemaName, dispatch]);
return {
schema,

View File

@ -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');
};