From fc531ceb85000f39bd2790fe408ee01157387772 Mon Sep 17 00:00:00 2001 From: nick-delirium Date: Tue, 13 Feb 2024 14:04:38 +0100 Subject: [PATCH] fix(ui): fix capture rate ui for saas and non ee --- .../shared/SessionSettings/components/CaptureRate.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/frontend/app/components/shared/SessionSettings/components/CaptureRate.tsx b/frontend/app/components/shared/SessionSettings/components/CaptureRate.tsx index a7f8b3363..2d19acef6 100644 --- a/frontend/app/components/shared/SessionSettings/components/CaptureRate.tsx +++ b/frontend/app/components/shared/SessionSettings/components/CaptureRate.tsx @@ -64,7 +64,8 @@ function CaptureRate(props: Props) { rate: parseInt(captureRate, 10), conditionalCapture: conditionalCapture, conditions: isEnterprise ? conditions.map((c) => c.toCaptureCondition()) : [], - }).finally(() => setChanged(false)); + }) + setChanged(false) }; const updateDisabled = !changed || !isAdmin || (isEnterprise && (conditionalCapture && conditions.length === 0)); @@ -104,9 +105,9 @@ function CaptureRate(props: Props) { {!conditionalCapture ? (