This commit is contained in:
Asier Isayas
2026-01-12 10:25:47 -08:00
parent 1db1c9448a
commit 178cbfaf18

View File

@@ -64,10 +64,10 @@ export const ThroughputBucketsComponent: FC<ThroughputBucketsComponentProps> = (
};
const getThroughputBucketOptions = (): IDropdownOption[] => {
const noDefaultThroughputBucketSelected: IDropdownOption[] = [
{ key: NoDefaultThroughputSelectedKey, text: "No Default Throughput Bucket Selected" },
];
const noDefaultThroughputBucketSelected: IDropdownOption = {
key: NoDefaultThroughputSelectedKey,
text: "No Default Throughput Bucket Selected",
};
const throughputBucketOptions: IDropdownOption[] = throughputBuckets
.filter((bucket) => bucket.maxThroughputPercentage !== 100)
.map((bucket) => ({
@@ -75,7 +75,7 @@ export const ThroughputBucketsComponent: FC<ThroughputBucketsComponentProps> = (
text: `Bucket ${bucket.id} - ${bucket.maxThroughputPercentage}%`,
}));
return [...noDefaultThroughputBucketSelected, ...throughputBucketOptions];
return [noDefaultThroughputBucketSelected, ...throughputBucketOptions];
};
const [throughputBuckets, setThroughputBuckets] = useState<ThroughputBucket[]>(getThroughputBuckets(currentBuckets));