From 80781f7c8f87516f2be284ee0c9f6179ffd9eb40 Mon Sep 17 00:00:00 2001 From: Sung-Hyun Kang Date: Sun, 12 Jan 2025 22:33:02 -0600 Subject: [PATCH] fix bugs --- .../ThroughputInputComponents/ThroughputBucketsComponent.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputBucketsComponent.tsx b/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputBucketsComponent.tsx index 32d203c33..f3c644070 100644 --- a/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputBucketsComponent.tsx +++ b/src/Explorer/Controls/Settings/SettingsSubComponents/ThroughputInputComponents/ThroughputBucketsComponent.tsx @@ -34,8 +34,9 @@ export const ThroughputBucketsComponent: FC = ( const [throughputBuckets, setThroughputBuckets] = useState(getThroughputBuckets(currentBuckets)); useEffect(() => { - const isChanged = isDirty(currentBuckets, getThroughputBuckets(throughputBucketsBaseline)); - isChanged && setThroughputBuckets(getThroughputBuckets(currentBuckets)); + setThroughputBuckets(getThroughputBuckets(currentBuckets)); + onSaveableChange(false); + onDiscardableChange(false); }, [currentBuckets]); useEffect(() => {