fix(ui): проверять подтверждение восстановления сетевых настроек
This commit is contained in:
1 parent
d0f5649725
commit
3dd4ad34ee
9 files changed
+33
-8
No files matched your search
@@ -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("Версия применена на роутер")
|
||||
|
||||
Reference in new issue
Block a user