Small clean up for withList and withDocument

This commit is contained in:
SachaG 2018-02-18 18:00:07 +09:00
parent bb43a16e68
commit bf4aba4a32
2 changed files with 6 additions and 3 deletions

View file

@ -36,9 +36,13 @@ export default function withDocument (options) {
`, {
alias: 'withDocument',
options(ownProps) {
options({ documentId, slug }) {
const graphQLOptions = {
variables: { documentId: ownProps.documentId, slug: ownProps.slug, enableCache, currentUser: ownProps.currentUser },
variables: {
documentId: documentId,
slug: slug,
enableCache,
},
pollInterval, // note: pollInterval can be set to 0 to disable polling (20s by default)
};

View file

@ -122,7 +122,6 @@ const withList = (options) => {
variables: {
terms: mergedTerms,
enableCache,
currentUser,
},
// note: pollInterval can be set to 0 to disable polling (20s by default)
pollInterval,