fix(ui): сохранить snapshot speed при неизвестном исходе записи
This commit is contained in:
1 parent
f408afba20
commit
96fa910804
8 files changed
+57
-4
No files matched your search
@@ -2,6 +2,7 @@
|
||||
|
||||
import { publishSpeedProbeSnapshots } from "@/lib/speed-probe-snapshot"
|
||||
import { parseSpeedRunResponse } from "@/lib/speed-run-response"
|
||||
import { isSpeedPersistenceUnknown } from "@/lib/speed-persistence-outcome"
|
||||
|
||||
import { dashboardProbeOverviewSchema } from "@/lib/dashboard-probes"
|
||||
|
||||
@@ -1811,7 +1812,7 @@ function UptimePageContent({ selectedProbeId, allProbesHref }: { selectedProbeId
|
||||
lines: [`status: error`, message],
|
||||
}) : r))
|
||||
setSpeedError(message)
|
||||
setSpeedProbes((prev) => prev.map((p) => p.id === probe.id ? ({
|
||||
if (!isSpeedPersistenceUnknown(e, runId)) setSpeedProbes((prev) => prev.map((p) => p.id === probe.id ? ({
|
||||
...p,
|
||||
lastRunAt: new Date().toISOString(),
|
||||
lastStatus: "error",
|
||||
|
||||
Reference in new issue
Block a user