diff --git a/src/gql/query/marketing.ts b/src/gql/query/marketing.ts index 2112e4ee..d81918b8 100644 --- a/src/gql/query/marketing.ts +++ b/src/gql/query/marketing.ts @@ -74,10 +74,14 @@ export const marketingQueryString = ( ) } - // No args if (fields?.tasks) { marketingQuery.push( - gqlQuery("tasks", {}, convertObjectToPropertiesString(defaultTask), true) + gqlQuery( + "tasks", + args.tasks ?? {}, + convertObjectToPropertiesString(fields.tasks), + true + ) ) } @@ -94,6 +98,17 @@ export const marketingQueryString = ( ) } + if (args.tasks && !fields?.tasks) { + marketingQuery.push( + gqlQuery( + "tasks", + args.tasks, + convertObjectToPropertiesString(defaultTask), + true + ) + ) + } + if (args.tweets && !fields?.tweets) { marketingQuery.push( gqlQuery(