mirror of
https://github.com/Dvorinka/Dash.git
synced 2026-10-28 15:51:27 +00:00
fix: byte formatting + exactOptionalPropertyTypes
fmtBytes used 1<<40 — a 32-bit shift in JS evaluates to 1<<8=256, so every value >=256 bytes rendered as TB. Also drop undefined-valued props that exactOptionalPropertyTypes rejects in incident/status-page bodies. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This commit is contained in:
1 parent
c84a4be876
commit
97b8f5e87f
4 files changed
+16
-6
No files matched your search
@@ -57,7 +57,7 @@ export function StatusPagesPage() {
|
||||
const { error } = await api.POST("/api/status-pages", {
|
||||
body: {
|
||||
title: pTitle.trim(),
|
||||
slug: pSlug.trim() || undefined,
|
||||
...(pSlug.trim() ? { slug: pSlug.trim() } : {}),
|
||||
description: pDesc.trim(),
|
||||
monitorIds: pMonitors,
|
||||
},
|
||||
|
||||
Reference in new issue
Block a user