Skip to content
Snippets Groups Projects
Commit df86b98f authored by Janis Daniel Dähne's avatar Janis Daniel Dähne
Browse files

- create exercise site now properly reloads to get new ids

parent 7391f283
No related branches found
No related tags found
No related merge requests found
......@@ -289,7 +289,7 @@ class App extends React.Component<Props, any> {
//exercise editor create, update, copy
}
<Route exact path={constants.exerciseEditorCreateNewLinkPath} render={(props: RouteComponentProps<any>) =>
<PageContentWrapper
<PageContentWrapper key={props.location.pathname} //force to reload/remount to reload ex with all new ids after creation
headerBar={
<CommonHeaderBar>
<ExerciseEditorSiteHeaderBarContent/>
......@@ -300,16 +300,18 @@ class App extends React.Component<Props, any> {
</PageContentWrapper>
}/>
<Route exact path={constants.exerciseEditorChangeLinkPath} render={(props: RouteComponentProps<any>) =>
<PageContentWrapper
headerBar={
<CommonHeaderBar>
<ExerciseEditorSiteHeaderBarContent/>
</CommonHeaderBar>
}
<Route exact path={constants.exerciseEditorChangeLinkPath} render={(props: RouteComponentProps<any>) => {
return <PageContentWrapper key={props.location.pathname}
headerBar={
<CommonHeaderBar>
<ExerciseEditorSiteHeaderBarContent/>
</CommonHeaderBar>
}
>
<ExerciseEditorSite {...props}/>
</PageContentWrapper>
}
}/>
{
......
......@@ -13,7 +13,7 @@ import Logger from './helpers/logger'
* y - breaking changes / new features
* z - fixes, small changes
*/
export const versionString = '2.10.1'
export const versionString = '2.10.2'
export const supportMail = 'yapex@informatik.uni-halle.de'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment