reload all databases before loading offers

This commit is contained in:
Asier Isayas
2025-12-30 14:09:53 -05:00
parent 44de3ade5c
commit eff736596f
2 changed files with 7 additions and 6 deletions

View File

@@ -598,6 +598,7 @@ export default class Collection implements ViewModels.Collection {
public onSettingsClick = async (): Promise<void> => {
useSelectedNode.getState().setSelectedNode(this);
const throughputCap = userContext.databaseAccount?.properties.capacity?.totalThroughputLimit;
await this.container.onRefreshResourcesClick();
throughputCap && throughputCap !== -1 ? await useDatabases.getState().loadAllOffers() : await this.loadOffer();
// if (throughputCap && throughputCap !== -1) {
// try {