From 69e3f2049f01a9aa78b81889ac040a10f925e590 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Wed, 26 Jul 2023 10:48:30 +0200 Subject: [PATCH] Fix invalid short uuid conversion Avoid "TypeError: Expected a string but received a null" error --- server/helpers/custom-validators/misc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/helpers/custom-validators/misc.ts b/server/helpers/custom-validators/misc.ts index 2c4cd1b9f..937ae0632 100644 --- a/server/helpers/custom-validators/misc.ts +++ b/server/helpers/custom-validators/misc.ts @@ -119,7 +119,7 @@ function toCompleteUUID (value: string) { try { return shortToUUID(value) } catch { - return null + return '' } }