Merge pull request #1811 from Sebi55/patch-1

Form loading state fix
This commit is contained in:
Sacha Greif 2018-01-11 20:40:47 +09:00 committed by GitHub
commit f0855432cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -158,7 +158,7 @@ class FormWrapper extends PureComponent {
// displays the loading state if needed, and passes on loading and document/data
const Loader = props => {
const { document, loading } = props;
return loading ?
return (!document && loading) ?
<Components.Loading /> :
<Form
document={document}