This commit is contained in:
Sung-Hyun Kang 2025-01-12 22:33:02 -06:00
parent aa39359460
commit 80781f7c8f

View File

@ -34,8 +34,9 @@ export const ThroughputBucketsComponent: FC<ThroughputBucketsComponentProps> = (
const [throughputBuckets, setThroughputBuckets] = useState<ThroughputBucket[]>(getThroughputBuckets(currentBuckets)); const [throughputBuckets, setThroughputBuckets] = useState<ThroughputBucket[]>(getThroughputBuckets(currentBuckets));
useEffect(() => { useEffect(() => {
const isChanged = isDirty(currentBuckets, getThroughputBuckets(throughputBucketsBaseline)); setThroughputBuckets(getThroughputBuckets(currentBuckets));
isChanged && setThroughputBuckets(getThroughputBuckets(currentBuckets)); onSaveableChange(false);
onDiscardableChange(false);
}, [currentBuckets]); }, [currentBuckets]);
useEffect(() => { useEffect(() => {