From 4aa7e7602bf21be923cf141b8dcd5b2eb9e7a251 Mon Sep 17 00:00:00 2001 From: Marek Tancak Date: Tue, 17 Dec 2024 17:40:32 +0000 Subject: [PATCH] fix: unable to delete boards with capitalised name 'Default' (#2223) --- src/server/api/routers/config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/api/routers/config.ts b/src/server/api/routers/config.ts index 6344a70ae2a..79926615096 100644 --- a/src/server/api/routers/config.ts +++ b/src/server/api/routers/config.ts @@ -23,7 +23,7 @@ export const configRouter = createTRPCRouter({ ) .output(z.object({ message: z.string() })) .mutation(async ({ input }) => { - if (input.name.toLowerCase() === 'default') { + if (input.name === 'default') { Consola.error("Rejected config deletion because default configuration can't be deleted"); throw new TRPCError({ code: 'FORBIDDEN',