Skip to content

Commit

Permalink
Merge pull request #3119 from ONSdigital/EAR-2311-moving-page-repeati…
Browse files Browse the repository at this point in the history
…ng-section-into-list-collector-folder

EAR-2311 - Moving page from repeating section into list collector folder
  • Loading branch information
sudeepkunhis authored May 31, 2024
2 parents 5b54c44 + 6e3bf65 commit f0b0859
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,9 @@ const NavigationSidebar = ({ questionnaire }) => {
const [openSections, toggleSections] = useState(true);
const [entity, setEntity] = useState({}); // Allows data for entity being dragged by user to be used in other droppables

const [movePage] = useMutation(MOVE_PAGE_MUTATION);
const [movePage] = useMutation(MOVE_PAGE_MUTATION, {
refetchQueries: ["GetPage"],
});
const [moveFolder] = useMutation(MOVE_FOLDER_MUTATION);
const [moveSection] = useMutation(MOVE_SECTION_MUTATION);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -782,6 +782,9 @@ UnwrappedListCollectorPageEditor.fragments = {
folder {
id
position
... on ListCollectorFolder {
listId
}
}
section {
id
Expand Down
3 changes: 3 additions & 0 deletions eq-author/src/App/page/Design/QuestionPageEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -239,6 +239,9 @@ UnwrappedQuestionPageEditor.fragments = {
folder {
id
position
... on ListCollectorFolder {
listId
}
}
section {
id
Expand Down
4 changes: 4 additions & 0 deletions eq-author/src/App/page/Design/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,10 @@ export const PAGE_QUERY = gql`
listId
}
}
section {
id
repeatingSectionListId
}
}
}
${CalculatedSummaryPageEditor.fragments.CalculatedSummaryPage}
Expand Down
4 changes: 4 additions & 0 deletions eq-author/src/graphql/movePage.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@ mutation MovePage($input: MovePageInput!) {
listId
}
}
section {
id
repeatingSectionListId
}
... on QuestionPage {
answers {
...Answer
Expand Down

0 comments on commit f0b0859

Please sign in to comment.