mirror of
https://github.com/ajnart/homarr.git
synced 2025-10-26 08:06:12 +01:00
fix: unable to delete boards with capitalised name 'Default' (#2223)
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user