Skip to content

Commit 89ce47f

Browse files
committed
Issue #20: fix aggregatable condition
1 parent 93a622a commit 89ce47f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/datasource.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ export class QuickwitDataSource
344344
return from(this.getResource('_elastic/' + this.index + '/_field_caps')).pipe(
345345
map((field_capabilities_response: FieldCapabilitiesResponse) => {
346346
const shouldAddField = (field: any) => {
347-
if (aggregatable !== undefined && !field.aggregatable) {
347+
if (aggregatable !== undefined && field.aggregatable != aggregatable) {
348348
return false
349349
}
350350
if (type?.length === 0) {

0 commit comments

Comments
 (0)