Remove the modal s auto opening after the submit of an edited field

This commit is contained in:
soupette 2019-04-05 00:46:25 +02:00
parent c62da404a5
commit 55d0fbfeea

View File

@ -376,7 +376,7 @@ export class ModelPage extends React.Component {
push({ search: nextSearch });
};
handleSubmitEdit = (shouldContinue = false) => {
handleSubmitEdit = () => {
const {
history: { push },
saveEditedAttribute,
@ -390,9 +390,7 @@ export class ModelPage extends React.Component {
saveEditedAttribute(attributeName, this.isUpdatingTemporaryContentType(), this.getModelName());
}
const nextSearch = shouldContinue ? 'modalType=chooseAttributes' : '';
push({ search: nextSearch });
push({ search: '' });
};
hasModelBeenModified = () => {