From d7db1ad303fa99fefb7dc902a23e55198734d600 Mon Sep 17 00:00:00 2001 From: Leo Giovanetti Date: Sun, 9 Oct 2022 09:36:39 -0300 Subject: [PATCH] Hiding event type loses recurring config (#4911) Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com> --- packages/trpc/server/routers/viewer/eventTypes.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/trpc/server/routers/viewer/eventTypes.tsx b/packages/trpc/server/routers/viewer/eventTypes.tsx index 0eaaa69c8..745a7d11e 100644 --- a/packages/trpc/server/routers/viewer/eventTypes.tsx +++ b/packages/trpc/server/routers/viewer/eventTypes.tsx @@ -280,7 +280,7 @@ export const eventTypesRouter = createProtectedRouter() until: recurringEvent.until as unknown as Prisma.InputJsonObject, tzid: recurringEvent.tzid, }; - } else { + } else if (recurringEvent === null) { data.recurringEvent = Prisma.DbNull; }