Skip to content

Commit bd07aad

Browse files
committed
Fix redirect on resource edit submit
1 parent c8b85f2 commit bd07aad

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

client/src/hocs/withResource.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const withResource = resourceKey => (WrappedComponent) => {
2020
const { params, createResource, updateResource, redirectToIndex } = props;
2121
const payload = { id: params.id, ...values };
2222
return (params.id ? updateResource : createResource)(payload, meta)
23-
// .then(redirectToIndex)
23+
.then(redirectToIndex)
2424
.catch((errors) => { throw new SubmissionError(errors); });
2525
},
2626
onDelete: props => (e) => {

0 commit comments

Comments
 (0)