Skip to content
Permalink
Browse files

API doesn't always return a data object, so this creates bad examples. (

  • Loading branch information...
timothymcmackin authored and jacobemerick committed Jun 19, 2019
1 parent d9ad03d commit a6722039bb6bae1d34ba281514056b9095b34414
Showing with 1 addition and 1 deletion.
  1. +1 −1 build/sdk/js/templates/api_doc.mustache
@@ -52,7 +52,7 @@ const queryParams = { {{#allParams}}{{^required}}

{{#usePromises}}
api.{{{operationId}}}({{#allParams}}{{#required}}{{{paramName}}}{{#vendorExtensions.x-codegen-hasMoreRequired}}, {{/vendorExtensions.x-codegen-hasMoreRequired}}{{/required}}{{/allParams}}{{#hasOptionalParams}}{{#vendorExtensions.x-codegen-hasRequiredParams}}, {{/vendorExtensions.x-codegen-hasRequiredParams}}queryParams{{/hasOptionalParams}}){{#returnType}}
.then(({ data }) => {
.then((data) => {
console.log(data);
}){{/returnType}}
.catch((error) => {

0 comments on commit a672203

Please sign in to comment.
You can’t perform that action at this time.