Hiding event type loses recurring config (#4911)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
pull/4922/head^2
Leo Giovanetti 2022-10-09 09:36:39 -03:00 committed by GitHub
parent bd48fd01b1
commit d7db1ad303
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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;
}