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.
2 parents 5bcb111 + 36f7c9b commit 2abf4b9Copy full SHA for 2abf4b9
src/services/vanilla.js
@@ -321,7 +321,10 @@ async function updateVanillaGroup (challenge) {
321
if (!groupCategoryForEdit) {
322
throw new Error('Group category wasn\'t found for this challenge')
323
}
324
+ // Update group's name
325
groupCategoryForEdit.name = challenge.name
326
+ // Delete a category's parent so as not to rebuild the category tree again
327
+ delete groupCategoryForEdit.parentCategoryID
328
329
const { body: updatedGroupCategory } = await vanillaClient.updateCategory(groupCategoryForEdit.categoryID, groupCategoryForEdit)
330
logger.info(`The group category was updated: ${JSON.stringify(updatedGroupCategory)}`)
0 commit comments