mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-04-24 07:22:02 +01:00
fix bugs
This commit is contained in:
@@ -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(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user