Skip to content

Commit

Permalink
js: fix copy attribute #995
Browse files Browse the repository at this point in the history
Signed-off-by: David Wallace <[email protected]>
  • Loading branch information
MyPyDavid committed May 17, 2024
1 parent c945d7d commit 748417b
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions rdmo/management/assets/js/actions/elementActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,9 +235,19 @@ export function fetchElement(elementType, elementId, elementAction=null) {
QuestionsApi.fetchQuestions('index'),
TasksApi.fetchTasks('index'),
]).then(([element, attributes, conditions, pages, questionsets,
questions, tasks]) => ({
questions, tasks]) => {
if (elementAction == 'copy') {
delete element.conditions
delete element.pages
delete element.questionsets
delete element.questions
delete element.tasks
}

return {
element, attributes, conditions, pages, questionsets, questions, tasks
}))
}
})
}
break

Expand Down

0 comments on commit 748417b

Please sign in to comment.