mirror of
https://github.com/strapi/strapi.git
synced 2025-09-25 16:29:34 +00:00
Fix content type update after first creation
This commit is contained in:
parent
b964e83953
commit
4dbaaf17cf
@ -72,7 +72,7 @@ export class ModelPage extends React.Component { // eslint-disable-line react/pr
|
||||
|
||||
componentWillReceiveProps(nextProps) {
|
||||
if (this.props.updatedContentType !== nextProps.updatedContentType) {
|
||||
if (this.state.contentTypeTemporary) {
|
||||
if (this.state.contentTypeTemporary && storeData.getContentType()) {
|
||||
this.props.modelFetchSucceeded({ model: storeData.getContentType() });
|
||||
} else {
|
||||
this.fetchModel(nextProps);
|
||||
|
Loading…
x
Reference in New Issue
Block a user