Skip to content

Commit d0392d1

Browse files
committed
swapi.tech has a different JSON structure
1 parent fce860e commit d0392d1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

apps/repl/public/samples/remote-data.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const Person = <template>
2222
{{#if request.isLoading}}
2323
... loading {{@id}} ...
2424
{{else if request.value}}
25-
{{request.value.name}}
25+
{{request.value.result.properties.name}}
2626
{{/if}}
2727
{{/let}}
2828
</template>

apps/tutorial/public/docs/11-requesting-data/1-using-remote-data/answer.gjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ const Person = <template>
1111
{{#if request.isLoading}}
1212
... loading {{@id}} ...
1313
{{else if request.value}}
14-
{{request.value.name}}
14+
{{request.value.result.properties.name}}
1515
{{/if}}
1616
{{/let}}
1717
</template>

apps/tutorial/public/docs/12-loading-patterns/1-keeping-latest/answer.gjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const urlFor = (id) => `https://swapi.tech/api/people/${id}`;
1212
const PersonInfo = <template>
1313
<fieldset class="border px-4">
1414
<legend>{{@person.url}}</legend>
15-
<pre><code>{{JSON.stringify @person null "\t"}}</code></pre>
15+
<pre><code>{{JSON.stringify @person null " "}}</code></pre>
1616
</fieldset>
1717
</template>;
1818

apps/tutorial/public/docs/12-loading-patterns/1-keeping-latest/prompt.gjs

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ const urlFor = (id) => `https://swapi.tech/api/people/${id}`;
1212
const PersonInfo = <template>
1313
<fieldset class="border px-4">
1414
<legend>{{@person.url}}</legend>
15-
<pre><code class="language-json">{{JSON.stringify @person null "\t"}}</code></pre>
15+
<pre><code class="language-json">{{JSON.stringify @person null " "}}</code></pre>
1616
</fieldset>
1717
</template>;
1818

0 commit comments

Comments
 (0)