fix(ui): сбрасывать снимок при изменении параметров speed-пробы
This commit is contained in:
1 parent
090206c893
commit
7f18fcb6db
11 files changed
+106
-22
No files matched your search
@@ -5,7 +5,7 @@ import { parseSpeedRunResponse } from "@/lib/speed-run-response"
|
||||
|
||||
import { dashboardProbeOverviewSchema } from "@/lib/dashboard-probes"
|
||||
|
||||
import { speedHistoryResponseSchema, speedProbesResponseSchema, speedProbesWriteSchema, speedProbesSavedSchema, pingProbesWriteSchema, probeCatalogSavedSchema } from "@mmapp/contracts"
|
||||
import { sameSpeedMeasurement, speedHistoryResponseSchema, speedProbesResponseSchema, speedProbesWriteSchema, speedProbesSavedSchema, pingProbesWriteSchema, probeCatalogSavedSchema } from "@mmapp/contracts"
|
||||
|
||||
import probeStyles from "./probe-rows.module.css"
|
||||
|
||||
@@ -2155,10 +2155,7 @@ function UptimePageContent({ selectedProbeId, allProbesHref }: { selectedProbeId
|
||||
{srvProbes.map((probe) => {
|
||||
const dst = allServers.find((s) => s.id === probe.dstServerId)
|
||||
const run = speedRuns.find((r) =>
|
||||
r.srcServerId === probe.srcServerId &&
|
||||
r.dstServerId === probe.dstServerId &&
|
||||
(r.srcInterface ?? "") === probe.srcInterface &&
|
||||
(r.dstInterface ?? "") === probe.dstInterface,
|
||||
sameSpeedMeasurement(r, probe),
|
||||
)
|
||||
const useRun = run && (run.status === "running" || (
|
||||
probe.lastStatus != null && probe.lastRunAt != null && run.startedAt >= Date.parse(probe.lastRunAt)
|
||||
|
||||
Reference in new issue
Block a user