From 4b2daf90bc370b5b8626a87581dc76b248ae8b01 Mon Sep 17 00:00:00 2001 From: Marek Tancak Date: Mon, 16 Dec 2024 14:33:38 +0000 Subject: [PATCH] fix: unable to delete boards with capitalised name 'Default' --- 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',