From 1315102988dcd1d7821b8832f1e9415ad11d0f50 Mon Sep 17 00:00:00 2001 From: Jennifer Shehane Date: Thu, 19 Dec 2024 10:32:04 -0500 Subject: [PATCH] revert everything in that getPath function (just dont touch it) --- packages/server/lib/screenshots.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/server/lib/screenshots.ts b/packages/server/lib/screenshots.ts index cd760386387b..f2f15d754ba9 100644 --- a/packages/server/lib/screenshots.ts +++ b/packages/server/lib/screenshots.ts @@ -423,7 +423,7 @@ const getPath = function (data: Data, ext, screenshotsFolder: ScreenshotsFolder, } else { names = _ .chain(data.titles) - .map((title: string | null | undefined) => sanitizeToString(title)) + .map(sanitizeToString) .join(RUNNABLE_SEPARATOR) // @ts-expect-error - this shouldn't be necessary, but it breaks if you remove it .concat([])