mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-04-18 12:36:15 +00:00
Fix loading from WikiTree by numeric id
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user