fix(client): solutionLink -> solution (#39544)
This sends the api the 'solution' it expects, not 'solutionLink'.
This commit is contained in:
committed by
GitHub
parent
fbbf7e3f75
commit
9e3441fe1d
@ -18,15 +18,15 @@ const propTypes = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
// back end challenges and front end projects use a single form field
|
// back end challenges and front end projects use a single form field
|
||||||
const solutionField = ['solutionLink'];
|
const solutionField = ['solution'];
|
||||||
const backEndProjectFields = ['solutionLink', 'githubLink'];
|
const backEndProjectFields = ['solution', 'githubLink'];
|
||||||
|
|
||||||
const options = {
|
const options = {
|
||||||
types: {
|
types: {
|
||||||
solutionLink: 'url',
|
solution: 'url',
|
||||||
githubLink: 'url'
|
githubLink: 'url'
|
||||||
},
|
},
|
||||||
required: ['solutionLink']
|
required: ['solution']
|
||||||
};
|
};
|
||||||
|
|
||||||
export class SolutionForm extends Component {
|
export class SolutionForm extends Component {
|
||||||
@ -92,7 +92,7 @@ export class SolutionForm extends Component {
|
|||||||
options={{
|
options={{
|
||||||
...options,
|
...options,
|
||||||
placeholders: {
|
placeholders: {
|
||||||
solutionLink: solutionLink,
|
solution: solutionLink,
|
||||||
githubLink: 'ex: https://github.com/camperbot/hello'
|
githubLink: 'ex: https://github.com/camperbot/hello'
|
||||||
}
|
}
|
||||||
}}
|
}}
|
||||||
|
Reference in New Issue
Block a user