From 025e98729050410c2964eae80dde967b4646dd99 Mon Sep 17 00:00:00 2001 From: ikaven1024 Date: Sun, 15 Oct 2023 15:54:37 +0800 Subject: [PATCH] fix: ttl in SetTtlDialog error when open without ttl set after opening dialog with ttl set --- frontend/src/components/dialogs/SetTtlDialog.vue | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/frontend/src/components/dialogs/SetTtlDialog.vue b/frontend/src/components/dialogs/SetTtlDialog.vue index 876f3e1..1a96902 100644 --- a/frontend/src/components/dialogs/SetTtlDialog.vue +++ b/frontend/src/components/dialogs/SetTtlDialog.vue @@ -29,11 +29,7 @@ watch( ttlForm.db = tab.db ttlForm.key = tab.key ttlForm.keyCode = tab.keyCode - if (tab.ttl < 0) { - // forever - } else { - ttlForm.ttl = tab.ttl - } + ttlForm.ttl = tab.ttl } } },