Skip to content

Commit 9955a39

Browse files
committed
Catch fetch error
1 parent 861a416 commit 9955a39

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/models/adoption-info.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ const testPromise = Promise.resolve(testData);
110110

111111
export default (TESTING ? testPromise : fetch(url).then((r) => r.json())).then(
112112
camelCaseKeys
113-
);
113+
).catch(() => ({}));

0 commit comments

Comments
 (0)