From a3ad39749b4dd17f9bde801072dfc9b6e2d973f7 Mon Sep 17 00:00:00 2001 From: SamGodwin2 Date: Mon, 5 Aug 2019 12:44:25 +0100 Subject: [PATCH] Fixed maybe --- eq-author/package.json | 6 +++--- .../src/App/page/Design/MovePageModal/MovePageQuery.js | 6 +++++- .../SectionEditor/MoveSectionModal/MoveSectionQuery.js | 1 + eq-author/yarn.lock | 9 +++++---- 4 files changed, 14 insertions(+), 8 deletions(-) diff --git a/eq-author/package.json b/eq-author/package.json index a8a662432c..a77e972613 100644 --- a/eq-author/package.json +++ b/eq-author/package.json @@ -73,10 +73,10 @@ "svgo-loader": "latest", "terser-webpack-plugin": "latest", "url-loader": "latest", + "wait-for-expect": "latest", "webpack": "latest", "webpack-dev-server": "latest", - "webpack-manifest-plugin": "latest", - "wait-for-expect": "latest" + "webpack-manifest-plugin": "latest" }, "dependencies": { "@sentry/browser": "latest", @@ -104,7 +104,7 @@ "lodash": "latest", "polished": "latest", "react": "latest", - "react-apollo": "latest", + "react-apollo": "^2.5.8", "react-dom": "latest", "react-firebaseui": "latest", "react-hot-loader": "latest", diff --git a/eq-author/src/App/page/Design/MovePageModal/MovePageQuery.js b/eq-author/src/App/page/Design/MovePageModal/MovePageQuery.js index 5a0838c542..9301dda772 100644 --- a/eq-author/src/App/page/Design/MovePageModal/MovePageQuery.js +++ b/eq-author/src/App/page/Design/MovePageModal/MovePageQuery.js @@ -4,7 +4,11 @@ import query from "graphql/getQuestionnaire.graphql"; import PropTypes from "prop-types"; const MovePageQuery = ({ questionnaireId, children }) => ( - + {({ loading, data }) => children({ loading, data })} ); diff --git a/eq-author/src/App/section/Design/SectionEditor/MoveSectionModal/MoveSectionQuery.js b/eq-author/src/App/section/Design/SectionEditor/MoveSectionModal/MoveSectionQuery.js index 108648ba9d..9bb6fe8713 100644 --- a/eq-author/src/App/section/Design/SectionEditor/MoveSectionModal/MoveSectionQuery.js +++ b/eq-author/src/App/section/Design/SectionEditor/MoveSectionModal/MoveSectionQuery.js @@ -6,6 +6,7 @@ import PropTypes from "prop-types"; const MoveSectionQuery = ({ questionnaireId, children }) => (