From 6aaf984f29b6bef6bb9fb8f859744aa60a97ef59 Mon Sep 17 00:00:00 2001 From: LouisLam Date: Mon, 20 Sep 2021 18:23:53 +0800 Subject: [PATCH] fix retryInterval = 0 if it is an old monitor. (#380 https://github.com/louislam/uptime-kuma/pull/380#issuecomment-922618356) --- src/pages/EditMonitor.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/pages/EditMonitor.vue b/src/pages/EditMonitor.vue index 6d8e5820..06f98c13 100644 --- a/src/pages/EditMonitor.vue +++ b/src/pages/EditMonitor.vue @@ -333,6 +333,11 @@ export default { this.$root.getSocket().emit("getMonitor", this.$route.params.id, (res) => { if (res.ok) { this.monitor = res.monitor; + + // Handling for monitors that are created before 1.7.0 + if (this.monitor.retryInterval === 0) { + this.monitor.retryInterval = this.monitor.interval; + } } else { toast.error(res.msg) }