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 }); 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 = () => {