Browse Source

fis(gui-v2): ignor onlye mm and hm fields in fields

re #3063

Signed-off-by: Pranav C <pranavxc@gmail.com>
pull/3067/head
Pranav C 2 years ago
parent
commit
a2545a2816
  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) => {
/** ignore hasmany and manytomany relations if it's using within sort menu */
if (isSort) {
return (
return !(
c.uidt === UITypes.LinkToAnotherRecord && (c.colOptions as LinkToAnotherRecordType).type !== RelationTypes.BELONGS_TO
)
/** ignore vutual fields which are system fields ( mm relation ) */

Loading…
Cancel
Save