From b9513d8462b41d1d25acfdcc595e41d98038a9c5 Mon Sep 17 00:00:00 2001 From: Lorenzo Bloedow Date: Tue, 11 Nov 2025 12:17:29 -0300 Subject: [PATCH] Fix comment being cleared after typing another comment before debounce --- .../ComposerWithSuggestions/ComposerWithSuggestions.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx index f2b0794b3b1a..aa71cf00d029 100644 --- a/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx +++ b/src/pages/home/report/ReportActionCompose/ComposerWithSuggestions/ComposerWithSuggestions.tsx @@ -730,7 +730,7 @@ function ComposerWithSuggestions({ mobileInputScrollPosition.current = 0; // Note: use the value when the clear happened, not the current value which might have changed already onCleared(text); - updateComment('', true); + updateComment(''); }, [onCleared, updateComment], );