diff --git a/client/src/templates/Challenges/projects/backend/Show.js b/client/src/templates/Challenges/projects/backend/Show.js index fa48df384c..d413ced5ad 100644 --- a/client/src/templates/Challenges/projects/backend/Show.js +++ b/client/src/templates/Challenges/projects/backend/Show.js @@ -13,7 +13,6 @@ import { consoleOutputSelector, initConsole, initTests, - updateBackendFormValues, updateChallengeMeta, updateSolutionFormValues } from '../../redux'; @@ -53,7 +52,6 @@ const propTypes = { }), tests: PropTypes.array, title: PropTypes.string, - updateBackendFormValues: PropTypes.func.isRequired, updateChallengeMeta: PropTypes.func.isRequired, updateSolutionFormValues: PropTypes.func.isRequired }; @@ -74,7 +72,6 @@ const mapDispatchToActions = { executeChallenge, initConsole, initTests, - updateBackendFormValues, updateChallengeMeta, updateSolutionFormValues }; @@ -155,7 +152,7 @@ export class BackEnd extends Component { }, tests, executeChallenge, - updateBackendFormValues + updateSolutionFormValues } = this.props; const blockNameTitle = `${blockName} - ${title}`; @@ -181,7 +178,7 @@ export class BackEnd extends Component { state[ns].modal.reset; export const isBuildEnabledSelector = state => state[ns].isBuildEnabled; export const successMessageSelector = state => state[ns].successMessage; -export const backendFormValuesSelector = state => - state[ns].backendFormValues || {}; export const projectFormValuesSelector = state => state[ns].projectFormValues || {}; @@ -207,7 +201,7 @@ export const challengeDataSelector = state => { files: challengeFilesSelector(state) }; } else if (challengeType === challengeTypes.backend) { - const { solution: url = {} } = backendFormValuesSelector(state); + const { solution: url = {} } = projectFormValuesSelector(state); challengeData = { ...challengeData, url @@ -329,10 +323,6 @@ export const reducer = handleActions( })), consoleOut: '' }), - [types.updateBackendFormValues]: (state, { payload }) => ({ - ...state, - backendFormValues: payload - }), [types.updateSolutionFormValues]: (state, { payload }) => ({ ...state, projectFormValues: payload