Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: do not set minutes to 1440 when clicking custom multiple times (#8166)

Liu Ji785b6c50d65c
diff --git a/frontend/src/components/InstanceForm/ScanIntervalInput.vue b/frontend/src/components/InstanceForm/ScanIntervalInput.vue
index 3924a4ddfa..f8dc958e7d 100644
--- a/frontend/src/components/InstanceForm/ScanIntervalInput.vue
+++ b/frontend/src/components/InstanceForm/ScanIntervalInput.vue
@@ -113,8 +113,11 @@ const minutes = computed({
},
});
-const handleModeChange = (mode: Mode) => {
- if (mode === "DEFAULT") {
+const handleModeChange = (targetMode: Mode) => {
+ if (targetMode === mode.value) {
+ return;
+ }
+ if (targetMode === "DEFAULT") {
minutes.value = undefined;
} else {
minutes.value = state.minutes ?? 1440;