Skip to content
Snippets Groups Projects
Commit 00b408ca authored by Sebastian Karlsson's avatar Sebastian Karlsson
Browse files

Update editor state upon component duplication

parent 3aa4a47b
No related branches found
No related tags found
1 merge request!122Resolve "View duplication"
This commit is part of merge request !122. Comments created here will be created in the context of that merge request.
...@@ -84,6 +84,7 @@ const RndComponent = ({ component, width, height, scale }: RndComponentProps) => ...@@ -84,6 +84,7 @@ const RndComponent = ({ component, width, height, scale }: RndComponentProps) =>
.post( .post(
`/api/competitions/${competitionId}/slides/${slideId}/components/${menuState.componentId}/copy/${viewTypeId}` `/api/competitions/${competitionId}/slides/${slideId}/components/${menuState.componentId}/copy/${viewTypeId}`
) )
.then(() => dispatch(getEditorCompetition(competitionId.toString())))
.catch(console.log) .catch(console.log)
setMenuState(initialMenuState) setMenuState(initialMenuState)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment