Skip to content

Commit 3d5c73e

Browse files
authored
(fix) fix wrong var name usage in abstractions (#9402)
1 parent f1e1801 commit 3d5c73e

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

contributors.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
- chensokheng
2222
- chrisngobanh
2323
- christopherchudzicki
24+
- christowiz
2425
- coryhouse
2526
- cvbuelow
2627
- dauletbaev

docs/route/error-element.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,12 +174,12 @@ function fetchProject(id) {
174174
headers: { Authorization: `Bearer ${token}` },
175175
});
176176

177-
if (res.status === 404) {
177+
if (response.status === 404) {
178178
throw new Response("Not Found", { status: 404 });
179179
}
180180

181181
// the fetch failed
182-
if (!res.ok) {
182+
if (!response.ok) {
183183
throw new Error("Could not fetch project");
184184
}
185185
}

0 commit comments

Comments
 (0)