mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 08:52:26 +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) {
|
componentWillReceiveProps(nextProps) {
|
||||||
if (this.props.updatedContentType !== nextProps.updatedContentType) {
|
if (this.props.updatedContentType !== nextProps.updatedContentType) {
|
||||||
if (this.state.contentTypeTemporary) {
|
if (this.state.contentTypeTemporary && storeData.getContentType()) {
|
||||||
this.props.modelFetchSucceeded({ model: storeData.getContentType() });
|
this.props.modelFetchSucceeded({ model: storeData.getContentType() });
|
||||||
} else {
|
} else {
|
||||||
this.fetchModel(nextProps);
|
this.fetchModel(nextProps);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user