mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2024-11-25 15:06:55 +00:00
Fix throughput input (#808)
This commit is contained in:
parent
addf4e248f
commit
9787a5ce7c
@ -1026,13 +1026,16 @@ export class AddCollectionPanel extends React.Component<AddCollectionPanelProps,
|
|||||||
|
|
||||||
let offerThroughput: number;
|
let offerThroughput: number;
|
||||||
let autoPilotMaxThroughput: number;
|
let autoPilotMaxThroughput: number;
|
||||||
|
|
||||||
|
if (databaseLevelThroughput) {
|
||||||
if (this.state.createNewDatabase) {
|
if (this.state.createNewDatabase) {
|
||||||
if (this.isNewDatabaseAutoscale) {
|
if (this.isNewDatabaseAutoscale) {
|
||||||
autoPilotMaxThroughput = this.newDatabaseThroughput;
|
autoPilotMaxThroughput = this.newDatabaseThroughput;
|
||||||
} else {
|
} else {
|
||||||
offerThroughput = this.newDatabaseThroughput;
|
offerThroughput = this.newDatabaseThroughput;
|
||||||
}
|
}
|
||||||
} else if (!databaseLevelThroughput) {
|
}
|
||||||
|
} else {
|
||||||
if (this.isCollectionAutoscale) {
|
if (this.isCollectionAutoscale) {
|
||||||
autoPilotMaxThroughput = this.collectionThroughput;
|
autoPilotMaxThroughput = this.collectionThroughput;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user