Skip to content

Commit 72f6f9c

Browse files
authored
fixup!
Signed-off-by: Aviv Keller <me@aviv.sh>
1 parent aa96ac2 commit 72f6f9c

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

apps/site/components/withSearch.tsx

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,8 @@ const WithSearch: FC = () => {
6969
// bottleneck here, so serializing these would waste ~N× round-trip time.
7070
const indexes = await Promise.all(
7171
Object.entries(ORAMA_DB_URLS).map(async ([key, url]) => {
72-
const fetchedDb = (await fetch(url).then(res =>
73-
res.json()
74-
)) as SerializedOramaDb;
72+
const response = await fetch(url);
73+
const fetchedDb = (await response.json()) as SerializedOramaDb;
7574
return addPrefixToDocs(fetchedDb, `/${key}`);
7675
})
7776
);

0 commit comments

Comments
 (0)