Skip to content

πŸ”₯ πŸ”₯ πŸ”₯ A Free & Self-hostable Airtable Alternative

fix: checkbox filter correction

Pranav Ca68b0a9338b9
diff --git a/packages/nc-gui/composables/useInfiniteGroups.ts b/packages/nc-gui/composables/useInfiniteGroups.ts
index 2898cf6f05..ed68287d3c 100644
--- a/packages/nc-gui/composables/useInfiniteGroups.ts
+++ b/packages/nc-gui/composables/useInfiniteGroups.ts
@@ -136,7 +136,7 @@ export const useInfiniteGroups = (
: await $api.dbViewRow.groupBy('noco', base.value.id, view.value.fk_model_id, view.value.id, {
offset,
limit: GROUP_CHUNK_SIZE,
- where: nestedWhere,
+ where: where.value,
sort: `${getSortParams(groupCol.sort)}${groupCol.column.title}` as any,
column_name: groupCol.column.title,
sortArrJson: JSON.stringify(sorts.value),
@@ -382,8 +382,7 @@ export const useInfiniteGroups = (
} else if (curr.column_uidt === UITypes.Checkbox) {
acc.push({
fk_column_id: curr.column_id,
- comparison_op: 'is',
- value: curr.key === GROUP_BY_VARS.TRUE ? 'checked' : 'notchecked',
+ comparison_op: curr.key === GROUP_BY_VARS.TRUE ? 'checked' : 'notchecked',
})
} else if (
[UITypes.Date, UITypes.DateTime, UITypes.CreatedTime, UITypes.LastModifiedTime].includes(curr.column_uidt as UITypes)