Skip to content

Commit 2331f31

Browse files
committed
Readonly views cannot get stats
1 parent 083e383 commit 2331f31

File tree

1 file changed

+1
-1
lines changed
  • src/internal-plugins/metrics/lib

1 file changed

+1
-1
lines changed

src/internal-plugins/metrics/lib/rules.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ module.exports = [
7171
store: 'CollectionStats.Store',
7272
resource: 'Collection Stats',
7373
action: 'fetched',
74-
condition: () => true,
74+
condition: (state) => (state !== undefined),
7575
metadata: (state) => ({
7676
'document count': state.documentCount,
7777
'total document size kb': state.totalDocumentSize,

0 commit comments

Comments
 (0)