Skip to content

Commit 397e4a7

Browse files
author
Alex Patterson
committed
fix bug for missing profile
1 parent 68889be commit 397e4a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frontend/main/src/services/serversideApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ export async function getAuthorProfiles(): Promise<UserInfoExtended[]> {
232232
}
233233
});
234234
const profiles = await Promise.all(profilesPromise);
235-
return profiles as UserInfoExtended[];
235+
return profiles.filter((x) => x !== undefined) as UserInfoExtended[];
236236
}
237237

238238
/* Utilities */

0 commit comments

Comments
 (0)