Browse Source

fix(gui-v2): ignore only mm and hm fields in fields

re #3063

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3022/head
Pranav C 2 years ago
parent
commit
f4057424d8
  1. 2
      packages/nc-gui-v2/components/smartsheet-toolbar/FieldListAutoCompleteDropdown.vue

2
packages/nc-gui-v2/components/smartsheet-toolbar/FieldListAutoCompleteDropdown.vue

@ -54,7 +54,7 @@ const options = computed<SelectProps['options']>(() =>
?.filter((c: ColumnType) => { ?.filter((c: ColumnType) => {
/** ignore hasmany and manytomany relations if it's using within sort menu */ /** ignore hasmany and manytomany relations if it's using within sort menu */
if (isSort) { if (isSort) {
return ( return !(
c.uidt === UITypes.LinkToAnotherRecord && (c.colOptions as LinkToAnotherRecordType).type !== RelationTypes.BELONGS_TO c.uidt === UITypes.LinkToAnotherRecord && (c.colOptions as LinkToAnotherRecordType).type !== RelationTypes.BELONGS_TO
) )
/** ignore vutual fields which are system fields ( mm relation ) */ /** ignore vutual fields which are system fields ( mm relation ) */

Loading…
Cancel
Save