mirror of
https://github.com/ajnart/homarr.git
synced 2025-11-03 12:05:57 +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() }))
|
.output(z.object({ message: z.string() }))
|
||||||
.mutation(async ({ input }) => {
|
.mutation(async ({ input }) => {
|
||||||
if (input.name.toLowerCase() === 'default') {
|
if (input.name === 'default') {
|
||||||
Consola.error("Rejected config deletion because default configuration can't be deleted");
|
Consola.error("Rejected config deletion because default configuration can't be deleted");
|
||||||
throw new TRPCError({
|
throw new TRPCError({
|
||||||
code: 'FORBIDDEN',
|
code: 'FORBIDDEN',
|
||||||
|
|||||||
Reference in New Issue
Block a user