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([])