diff --git a/packages/nc-gui/components/smartsheet/toolbar/FieldListAutoCompleteDropdown.vue b/packages/nc-gui/components/smartsheet/toolbar/FieldListAutoCompleteDropdown.vue index da31dc71f2..f1485c7133 100644 --- a/packages/nc-gui/components/smartsheet/toolbar/FieldListAutoCompleteDropdown.vue +++ b/packages/nc-gui/components/smartsheet/toolbar/FieldListAutoCompleteDropdown.vue @@ -25,9 +25,13 @@ const { showSystemFields, metaColumnById } = useViewColumns(activeView, meta) const options = computed(() => meta.value?.columns ?.filter((c: ColumnType) => { - if (!showSystemFields.value && isSystemColumn(metaColumnById?.value?.[c.id!])) { - /** hide system columns if not enabled */ - return false + if (isSystemColumn(metaColumnById?.value?.[c.id!])) { + return ( + /** if the field is used in filter, then show it anyway */ + localValue.value === c.id || + /** hide system columns if not enabled */ + showSystemFields.value + ) } else if (c.uidt === UITypes.QrCode || c.uidt === UITypes.Barcode || c.uidt === UITypes.ID) { return false } else if (isSort) {