Check for -1 throughput cap value (#1159)

This commit is contained in:
victor-meng
2021-11-10 21:43:04 -08:00
committed by GitHub
parent 27a49e9aa9
commit 1155557af1
7 changed files with 16 additions and 12 deletions

View File

@@ -1176,7 +1176,8 @@ export default class Explorer {
<CassandraAddCollectionPane explorer={this} cassandraApiClient={new CassandraAPIDataClient()} />
);
} else {
userContext.databaseAccount?.properties.capacity?.totalThroughputLimit
const throughputCap = userContext.databaseAccount?.properties.capacity?.totalThroughputLimit;
throughputCap && throughputCap !== -1
? await useDatabases.getState().loadAllOffers()
: await useDatabases.getState().loadDatabaseOffers();
useSidePanel