server: add missing return in extractQuoteUrl
All checks were successful
ci/woodpecker/push/lint-backend Pipeline was successful
ci/woodpecker/push/lint-foundkey-js Pipeline was successful
ci/woodpecker/push/lint-client Pipeline was successful
ci/woodpecker/push/build Pipeline was successful
ci/woodpecker/push/lint-sw Pipeline was successful
ci/woodpecker/push/test Pipeline was successful

This commit is contained in:
Johann150 2023-01-22 21:42:49 +01:00
parent afa4094050
commit c792e4199c
Signed by: Johann150
GPG key ID: 9EE6577A2A06F8F1

View file

@ -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;
}