Skip to content

Commit

Permalink
add missing fallback for uninitialized backends
Browse files Browse the repository at this point in the history
  • Loading branch information
warm-coolguy committed Jul 8, 2024
1 parent b42cbf6 commit a324694
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,5 +28,6 @@ export async function searchLiteratureByToponym(
body: `{"location_names":${JSON.stringify(names)}}`,
}
)
return (await response.json()).title_location_freq as TitleLocationFrequency
return ((await response.json()).title_location_freq ||
{}) as TitleLocationFrequency
}

0 comments on commit a324694

Please sign in to comment.