Skip to content

Commit 5708ee0

Browse files
committed
fix showing capped badge
1 parent c6afdd4 commit 5708ee0

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

packages/collection-model/lib/collection-properties.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ const PROPERTIES_FLE2 = 'fle2';
77
const PROPERTIES_VIEW = 'view';
88
const PROPERTIES_READ_ONLY = 'read-only';
99

10+
/**
11+
* @param {import('../').CollectionProps} coll
12+
*/
1013
function getProperties(coll) {
1114
const properties = [];
1215

@@ -29,7 +32,7 @@ function getProperties(coll) {
2932
});
3033
}
3134

32-
if (coll.capped) {
35+
if (coll.is_capped) {
3336
properties.push({
3437
id: PROPERTIES_CAPPED,
3538
});

packages/collection-model/lib/model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ const CollectionModel = AmpersandModel.extend(debounceActions(['fetch']), {
222222
},
223223
},
224224
properties: {
225-
deps: ['collation', 'type', 'capped', 'clustered', 'readonly', 'fle2'],
225+
deps: ['collation', 'type', 'is_capped', 'clustered', 'readonly', 'fle2'],
226226
fn() {
227227
return getProperties(this);
228228
},

0 commit comments

Comments
 (0)