mirror of
https://github.com/strapi/strapi.git
synced 2025-08-19 14:19:03 +00:00
Remove the modal s auto opening after the submit of an edited field
This commit is contained in:
parent
c62da404a5
commit
55d0fbfeea
@ -376,7 +376,7 @@ export class ModelPage extends React.Component {
|
|||||||
push({ search: nextSearch });
|
push({ search: nextSearch });
|
||||||
};
|
};
|
||||||
|
|
||||||
handleSubmitEdit = (shouldContinue = false) => {
|
handleSubmitEdit = () => {
|
||||||
const {
|
const {
|
||||||
history: { push },
|
history: { push },
|
||||||
saveEditedAttribute,
|
saveEditedAttribute,
|
||||||
@ -390,9 +390,7 @@ export class ModelPage extends React.Component {
|
|||||||
saveEditedAttribute(attributeName, this.isUpdatingTemporaryContentType(), this.getModelName());
|
saveEditedAttribute(attributeName, this.isUpdatingTemporaryContentType(), this.getModelName());
|
||||||
}
|
}
|
||||||
|
|
||||||
const nextSearch = shouldContinue ? 'modalType=chooseAttributes' : '';
|
push({ search: '' });
|
||||||
|
|
||||||
push({ search: nextSearch });
|
|
||||||
};
|
};
|
||||||
|
|
||||||
hasModelBeenModified = () => {
|
hasModelBeenModified = () => {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user