forked from FoundKeyGang/FoundKey
server: add missing return in extractQuoteUrl
This commit is contained in:
parent
afa4094050
commit
c792e4199c
1 changed files with 1 additions and 1 deletions
|
@ -45,5 +45,5 @@ export function extractQuoteUrl(tags: IObject | IObject[] | null | undefined): s
|
|||
|
||||
// Deduplicate by href.
|
||||
// If there is more than one quote, we just pick the first/a random one.
|
||||
quotes.filter((x, i, arr) => arr.findIndex(y => x.href === y.href) === i)[0].href;
|
||||
return quotes.filter((x, i, arr) => arr.findIndex(y => x.href === y.href) === i)[0].href;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue