diff --git a/src/app.tsx b/src/app.tsx index 769e3555830b6c8458bca47a1df9ab0d70008b79..8c90bdd1961595dc8454a1c89a5cd7613bfb3ef9 100644 --- a/src/app.tsx +++ b/src/app.tsx @@ -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> + } }/> { diff --git a/src/constants.ts b/src/constants.ts index 959f9363075be1b3db1d2dd9348c64f48456254f..d07e980d9309af18c961ba84113e6464b70805e6 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -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'