mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-01-25 04:34:13 +00:00
nit
This commit is contained in:
@@ -64,10 +64,10 @@ export const ThroughputBucketsComponent: FC<ThroughputBucketsComponentProps> = (
|
|||||||
};
|
};
|
||||||
|
|
||||||
const getThroughputBucketOptions = (): IDropdownOption[] => {
|
const getThroughputBucketOptions = (): IDropdownOption[] => {
|
||||||
const noDefaultThroughputBucketSelected: IDropdownOption[] = [
|
const noDefaultThroughputBucketSelected: IDropdownOption = {
|
||||||
{ key: NoDefaultThroughputSelectedKey, text: "No Default Throughput Bucket Selected" },
|
key: NoDefaultThroughputSelectedKey,
|
||||||
];
|
text: "No Default Throughput Bucket Selected",
|
||||||
|
};
|
||||||
const throughputBucketOptions: IDropdownOption[] = throughputBuckets
|
const throughputBucketOptions: IDropdownOption[] = throughputBuckets
|
||||||
.filter((bucket) => bucket.maxThroughputPercentage !== 100)
|
.filter((bucket) => bucket.maxThroughputPercentage !== 100)
|
||||||
.map((bucket) => ({
|
.map((bucket) => ({
|
||||||
@@ -75,7 +75,7 @@ export const ThroughputBucketsComponent: FC<ThroughputBucketsComponentProps> = (
|
|||||||
text: `Bucket ${bucket.id} - ${bucket.maxThroughputPercentage}%`,
|
text: `Bucket ${bucket.id} - ${bucket.maxThroughputPercentage}%`,
|
||||||
}));
|
}));
|
||||||
|
|
||||||
return [...noDefaultThroughputBucketSelected, ...throughputBucketOptions];
|
return [noDefaultThroughputBucketSelected, ...throughputBucketOptions];
|
||||||
};
|
};
|
||||||
|
|
||||||
const [throughputBuckets, setThroughputBuckets] = useState<ThroughputBucket[]>(getThroughputBuckets(currentBuckets));
|
const [throughputBuckets, setThroughputBuckets] = useState<ThroughputBucket[]>(getThroughputBuckets(currentBuckets));
|
||||||
|
|||||||
Reference in New Issue
Block a user