forked from FoundKeyGang/FoundKey
server: fix undefined variable in getOneApId
This is a fixup for commit 48fd543d0f
.
closes FoundKeyGang/FoundKey#365
This commit is contained in:
parent
48363a90ef
commit
f1d7357e75
1 changed files with 1 additions and 1 deletions
|
@ -55,7 +55,7 @@ export function getApId(value: string | Object): string {
|
|||
export function getOneApId(value: ApObject): string {
|
||||
if (Array.isArray(value)) {
|
||||
// find the first valid ID
|
||||
for (const id of value) {
|
||||
for (const x of value) {
|
||||
try {
|
||||
return getApId(x);
|
||||
} catch {
|
||||
|
|
Loading…
Reference in a new issue