From 84db9b85e23ebf44d831100a0ef1d9b229693e63 Mon Sep 17 00:00:00 2001 From: Kir_Antipov Date: Fri, 5 Jan 2024 15:41:55 +0000 Subject: [PATCH] Fixed typo causing exceptions on unknown loaders --- src/platforms/modrinth/modrinth-uploader.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/platforms/modrinth/modrinth-uploader.ts b/src/platforms/modrinth/modrinth-uploader.ts index 46f83a4..c3a8792 100644 --- a/src/platforms/modrinth/modrinth-uploader.ts +++ b/src/platforms/modrinth/modrinth-uploader.ts @@ -151,7 +151,7 @@ export class ModrinthUploader extends GenericPlatformUploader modrinthLoaders.find(y => IGNORE_CASE_AND_NON_WORD_CHARACTERS_EQUALITY_COMPARER(x, y.name))) - .filter(x => x.supported_project_types?.includes(project.project_type)) + .filter(x => x?.supported_project_types.includes(project.project_type)) .map(x => x.name) .toArray(); }