Skip to content

Commit

Permalink
bind(this)
Browse files Browse the repository at this point in the history
  • Loading branch information
abvthecity committed Aug 1, 2024
1 parent 3413eec commit 45fe86c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/ui/app/src/api-playground/code-snippets/resolver.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,7 @@ const response = await fetch("${this.url}", {
const body = await response.json();
console.log(body);`;
}
buildFetch.bind(this);

if (this.formState.body == null) {
return buildFetch(undefined);
Expand Down Expand Up @@ -279,6 +280,7 @@ response = requests.${endpoint.method.toLowerCase()}(
print(response.json())`;
}
buildRequests.bind(this);

if (this.formState.body == null) {
return `${imports.map((pkg) => `import ${pkg}`).join("\n")}
Expand Down

0 comments on commit 45fe86c

Please sign in to comment.