Skip to content

Commit

Permalink
fix: unable to delete boards with capitalised name 'Default' (#2223)
Browse files Browse the repository at this point in the history
  • Loading branch information
tancak authored Dec 17, 2024
1 parent d63c610 commit 4aa7e76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/server/api/routers/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 4aa7e76

Please sign in to comment.