fix: unable to delete boards with capitalised name 'Default' (#2223)

This commit is contained in:
Marek Tancak
2024-12-17 17:40:32 +00:00
committed by GitHub
parent d63c610cf5
commit 4aa7e7602b

View File

@@ -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',