Skip to content
Snippets Groups Projects
Commit 7d1e0d26 authored by Bogdan Cochior's avatar Bogdan Cochior
Browse files

Fix authors editing

parent 9bb62255
No related branches found
No related tags found
No related merge requests found
...@@ -79,8 +79,8 @@ export default compose( ...@@ -79,8 +79,8 @@ export default compose(
values.edit, values.edit,
...authors.slice(index + 1), ...authors.slice(index + 1),
] ]
setAuthorEdit(-1)()
setAuthors(newAuthors, version.id) setAuthors(newAuthors, version.id)
setTimeout(setAuthorEdit(-1), 100)
}, },
}), }),
)(AuthorEdit) )(AuthorEdit)
...@@ -33,6 +33,7 @@ export default ({ ...@@ -33,6 +33,7 @@ export default ({
countryParser={countryParser} countryParser={countryParser}
parseAuthorType={parseAuthorType} parseAuthorType={parseAuthorType}
removeAuthor={removeAuthor} removeAuthor={removeAuthor}
index={index}
{...rest} {...rest}
/> />
), ),
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment