Fix throughput input (#808)

This commit is contained in:
victor-meng 2021-05-21 11:12:13 -07:00 committed by GitHub
parent addf4e248f
commit 9787a5ce7c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1026,13 +1026,16 @@ export class AddCollectionPanel extends React.Component<AddCollectionPanelProps,
let offerThroughput: number;
let autoPilotMaxThroughput: number;
if (databaseLevelThroughput) {
if (this.state.createNewDatabase) {
if (this.isNewDatabaseAutoscale) {
autoPilotMaxThroughput = this.newDatabaseThroughput;
} else {
offerThroughput = this.newDatabaseThroughput;
}
} else if (!databaseLevelThroughput) {
}
} else {
if (this.isCollectionAutoscale) {
autoPilotMaxThroughput = this.collectionThroughput;
} else {