fix(ui): проверять подтверждение восстановления сетевых настроек

This commit is contained in:
Denozordec committed 2026-09-29 13:58:26 +07:00
1 parent d0f5649725
commit 3dd4ad34ee
9 files changed
+33 -8

No files matched your search

+1
View File
@@ -496,6 +496,7 @@ export default function RecursiveRoutesPage() {
`/api/recursive-routes/revisions/${encodeURIComponent(id)}/restore`,
{ method: "POST", body: JSON.stringify({ serverId: selectedServerId }) },
)
if (res?.ok !== true) throw new Error("Сервер не подтвердил восстановление")
setRows(res.routes ?? [])
setLiveStale(false)
toast.success("Версия применена на роутер")