Fix loading from WikiTree by numeric id

This commit is contained in:
Przemek Więch
2022-10-08 01:03:32 +02:00
parent c8a7ed4e0d
commit 4b8b423fa4
2 changed files with 6 additions and 7 deletions

View File

@@ -98,7 +98,7 @@ async function getRelatives(
{getChildren: true, getSpouses: true},
getApiOptions(handleCors),
);
if (response === []) {
if (!response) {
const id = keysToFetch[0];
throw new TopolaError(
'WIKITREE_PROFILE_NOT_FOUND',