mirror of
https://github.com/vale981/Vulcan
synced 2025-03-06 01:51:40 -05:00
Small clean up for withList and withDocument
This commit is contained in:
parent
bb43a16e68
commit
bf4aba4a32
2 changed files with 6 additions and 3 deletions
|
@ -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)
|
||||
};
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue