From 5795ba739d258fc788bf9645fdc8aa427d8a1ee9 Mon Sep 17 00:00:00 2001 From: Alex Collins Date: Mon, 31 Jul 2023 16:24:59 -0700 Subject: [PATCH] fix: Correct broken `forever` option in pod logs viewer. Fixes #14762 (#14763) Signed-off-by: Alex Collins --- .../pod-logs-viewer/since-seconds-selector.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/ui/src/app/applications/components/pod-logs-viewer/since-seconds-selector.tsx b/ui/src/app/applications/components/pod-logs-viewer/since-seconds-selector.tsx index e5c02ee031f80..0d322afc71ba5 100644 --- a/ui/src/app/applications/components/pod-logs-viewer/since-seconds-selector.tsx +++ b/ui/src/app/applications/components/pod-logs-viewer/since-seconds-selector.tsx @@ -4,7 +4,14 @@ import {Tooltip} from 'argo-ui'; // SinceSelector is a component that renders a dropdown menu of time ranges export const SinceSecondsSelector = ({sinceSeconds, setSinceSeconds}: {sinceSeconds: number; setSinceSeconds: (value: number) => void}) => ( - { + const v = parseInt(e.target.value, 10); + setSinceSeconds(!isNaN(v) ? v : null); + }}>