We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 91e52f5 commit 7ba1ce2Copy full SHA for 7ba1ce2
src/services/ChallengeService.js
@@ -1569,8 +1569,12 @@ function sanitizeChallenge (challenge) {
1569
'attachmentIds',
1570
'groups'
1571
])
1572
- sanitized.name = xss(sanitized.name)
1573
- sanitized.description = xss(sanitized.description)
+ if (!_.isUndefined(sanitized.name)) {
+ sanitized.name = xss(sanitized.name)
1574
+ }
1575
+ if (!_.isUndefined(sanitized.description)) {
1576
+ sanitized.description = xss(sanitized.description)
1577
1578
if (challenge.legacy) {
1579
sanitized.legacy = _.pick(challenge.legacy, [
1580
'track',
0 commit comments