Skip to content

Commit 40d0f66

Browse files
authored
Merge pull request appwrite#890 from kunalArya1/fix-docs-templates
Fix variable names and logging in web and react-native docs templates #8328
2 parents 6ac71c9 + f52124f commit 40d0f66

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

templates/react-native/docs/example.md.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ const {{ service.name | caseCamel }} = new {{service.name | caseUcfirst}}(client
2222
{% endif %}
2323

2424
{% if method.type != 'webAuth' %}
25-
console.log({% if method.type == '___location' %}result{% else %}response{% endif %});
25+
console.log(result);
2626
{% endif %}

templates/web/docs/example.md.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@ const {{ service.name | caseCamel }} = new {{service.name | caseUcfirst}}(client
2222
{% endif %}
2323

2424
{% if method.type != 'webAuth' %}
25-
console.log({% if method.type == '___location' %}result{% else %}response{% endif %});
25+
console.log(result);
2626
{% endif %}

0 commit comments

Comments
 (0)