diff --git a/packages/clients/textLocator/src/utils/literatureByToponym.ts b/packages/clients/textLocator/src/utils/literatureByToponym.ts index dac1198b6..a0ab5c030 100644 --- a/packages/clients/textLocator/src/utils/literatureByToponym.ts +++ b/packages/clients/textLocator/src/utils/literatureByToponym.ts @@ -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 }