diff --git a/src/components/404internal/Chat404.tsx b/src/components/404internal/Chat404.tsx index bbcc6ac300b75dd2a6221fe64d3a37407e883355..674b4c06486b0dcbd6652ed686195d0ca9adbff5 100644 --- a/src/components/404internal/Chat404.tsx +++ b/src/components/404internal/Chat404.tsx @@ -339,7 +339,7 @@ const conversion: ReadonlyArray<ChatMessage> = [ kind: 'message', name: 'Steffen', withLoading: true, - message: 'Jaja, von wegen keine Fehler. Ich habe dir aber doch gleich gesagt, dass wir einen vernünftigen 404-Seite brauchen!' + message: 'Jaja, von wegen keine Fehler. Ich habe dir aber doch gleich gesagt, dass wir einen vernünftige 404-Seite brauchen!' }, { kind: 'message', diff --git a/src/components/sites/manageOwnOrGroupExerciseComponents/listView.tsx b/src/components/sites/manageOwnOrGroupExerciseComponents/listView.tsx index 83c5b6c48f952b9753af712ecfe979ec381500f3..fa379443959b0808f28fd48fc21fe67a49531f69 100644 --- a/src/components/sites/manageOwnOrGroupExerciseComponents/listView.tsx +++ b/src/components/sites/manageOwnOrGroupExerciseComponents/listView.tsx @@ -27,6 +27,7 @@ import Spinner from '../../helpers/spinner' import {copyExercise} from '../../../communicationLayer/exerciseEditorLayer' import Logger from '../../../helpers/logger' import history from '../../../routerHistory' +import {debugOriginUrl, isProduction} from '../../../../debug' //const css = require('./styles.styl'); @@ -675,6 +676,10 @@ class TableView extends React.Component<Props, any> { newExerciseId = await copyExercise(exercisePreview.id) } catch (err) { + if (!isProduction) { + Logger.warn(`could not create exercise copy: ${err.message}`, err) + } + Logger.warn('could not create exercise copy') errorDialog(getI18n(this.props.langId, "Error"), getI18n(this.props.langId, "Could not copy exercise"), this.props.langId diff --git a/src/constants.ts b/src/constants.ts index cfcd9b0ee713fbda607789ab1fcf279d2d62518d..a018fa08aad843f9455df35c4f25924fdc887701 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.5.4' +export const versionString = '2.5.5' export const supportMail = 'yapex@informatik.uni-halle.de' diff --git a/src/state/reducers/exerciseEditorSite/getEditorExerciseReducer.ts b/src/state/reducers/exerciseEditorSite/getEditorExerciseReducer.ts index a2e9c9c8005faffd6f209a748bc29276a7a1d620..b1ebfb4fc1de8a3a5cca8ab4cc4e2d56a1e09d2b 100644 --- a/src/state/reducers/exerciseEditorSite/getEditorExerciseReducer.ts +++ b/src/state/reducers/exerciseEditorSite/getEditorExerciseReducer.ts @@ -9,6 +9,7 @@ import {EditorExerciseFromBackend} from "../../../types/exerciseEditor"; import {convertEditorExerciseFromBackendToFrontend} from "../../../helpers/convertersAndTransformers"; import {AceEditorsStorageHelper} from '../../../components/codeEditors/aceEditors/aceEditorsStorageHelper' import {editExerciseExerciseDescriptionEditorPanelViewEditorId} from '../../../constants' +import {initial as initialEditorExercise} from './editorExerciseReducer' export interface GET_editorExerciseAction @@ -78,7 +79,7 @@ export function reducer(state: State = initial(), action: AllActions): State { return { ...state, isLoading: false, - editorExercise: null + editorExercise: initialEditorExercise() } default: