Skip to content

Commit 0591053

Browse files
committed
fix(hosts): send enable key for brutal mux settings
1 parent 01dd91a commit 0591053

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

dashboard/src/components/dialogs/HostModal.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -506,6 +506,12 @@ const HostModal: React.FC<HostModalProps> = ({ isDialogOpen, onOpenChange, onSub
506506
return
507507
}
508508

509+
// Always preserve boolean values (including false)
510+
if (typeof value === 'boolean') {
511+
result[key] = value
512+
return
513+
}
514+
509515
if (value === null || value === undefined || value === '') return
510516

511517
if (typeof value === 'object' && !Array.isArray(value)) {

dashboard/src/components/hosts/Hosts.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,7 @@ export const HostFormSchema = z.object({
371371
padding: z.boolean().nullable().optional(),
372372
brutal: z
373373
.object({
374+
enable: z.boolean().optional(),
374375
up_mbps: z.number().nullable().optional(),
375376
down_mbps: z.number().nullable().optional(),
376377
})
@@ -388,6 +389,7 @@ export const HostFormSchema = z.object({
388389
padding: z.boolean().nullable().optional(),
389390
brutal: z
390391
.object({
392+
enable: z.boolean().optional(),
391393
up_mbps: z.number().nullable().optional(),
392394
down_mbps: z.number().nullable().optional(),
393395
})

0 commit comments

Comments
 (0)