From b4cb66111f2f303f6d76b7183da51c7b5e9eba28 Mon Sep 17 00:00:00 2001 From: DebaucheryLibrarian Date: Mon, 15 Dec 2025 01:36:08 +0100 Subject: [PATCH] Fixed tag association failing if tag is missing. --- src/tags.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tags.js b/src/tags.js index 14a59f22..2d8a879e 100755 --- a/src/tags.js +++ b/src/tags.js @@ -76,7 +76,7 @@ function withRelations(queryBuilder, withMedia) { async function matchReleaseTags(releases) { const tags = releases .map((release) => release.tags).flat() - .map((tag) => tag.trim().toLowerCase()) + .map((tag) => tag?.trim().toLowerCase()) .filter(Boolean); const tagEntries = await knex('tags')