We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent aa96ac2 commit 72f6f9cCopy full SHA for 72f6f9c
1 file changed
apps/site/components/withSearch.tsx
@@ -69,9 +69,8 @@ const WithSearch: FC = () => {
69
// bottleneck here, so serializing these would waste ~N× round-trip time.
70
const indexes = await Promise.all(
71
Object.entries(ORAMA_DB_URLS).map(async ([key, url]) => {
72
- const fetchedDb = (await fetch(url).then(res =>
73
- res.json()
74
- )) as SerializedOramaDb;
+ const response = await fetch(url);
+ const fetchedDb = (await response.json()) as SerializedOramaDb;
75
return addPrefixToDocs(fetchedDb, `/${key}`);
76
})
77
);
0 commit comments