Skip to content

Commit 5453f29

Browse files
fix(databases-collections-list): fixes the problem of refresh button on collection tab not refreshing the collection stats - COMPASS-6738 (#4270)
1 parent 578e653 commit 5453f29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/compass-app-stores/src/stores/instance-store.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ store.onActivated = (appRegistry) => {
261261
});
262262

263263
// Event emitted when the Collections grid needs to be refreshed
264-
// with new collections or collection info for existing ones.
264+
// with new collections or collection stats for existing ones.
265265
appRegistry.on('refresh-collections', async ({ ns }) => {
266266
const { instance, dataService } = store.getState();
267267
const { database } = toNS(ns);
@@ -271,7 +271,7 @@ store.onActivated = (appRegistry) => {
271271

272272
const db = instance.databases.get(database);
273273
if (db) {
274-
await db.fetchCollections({ dataService, fetchInfo: true, force: true });
274+
await db.fetchCollectionsDetails({ dataService, force: true });
275275
}
276276
});
277277

0 commit comments

Comments
 (0)