Fix two settings tab issues (#374)

This commit is contained in:
victor-meng
2021-01-07 13:38:13 -08:00
committed by GitHub
parent 89dc0f394b
commit 08e8bf4bcf
3 changed files with 6 additions and 6 deletions

View File

@@ -138,8 +138,8 @@ export class SettingsComponent extends React.Component<SettingsComponentProps, S
// Mongo container with system partition key still treat as "Fixed"
this.isFixedContainer =
!this.collection.partitionKey ||
(this.container.isPreferredApiMongoDB() && this.collection.partitionKey.systemKey);
this.container.isPreferredApiMongoDB() &&
(!this.collection.partitionKey || this.collection.partitionKey.systemKey);
this.state = {
throughput: undefined,