Browse Source

fix: disable virtual cols in rollup column list. ref: #1842.

Signed-off-by: Wing-Kam Wong <wingkwong.code@gmail.com>
pull/1845/head
Wing-Kam Wong 2 years ago
parent
commit
8b952687d4
  1. 4
      packages/nc-gui/components/project/spreadsheet/components/editColumn/rollupOptions.vue

4
packages/nc-gui/components/project/spreadsheet/components/editColumn/rollupOptions.vue

@ -64,7 +64,7 @@
<script>
import { isSystemColumn, UITypes } from 'nocodb-sdk'
import { isSystemColumn, isVirtualCol, UITypes } from 'nocodb-sdk'
export default {
name: 'RollupOptions',
@ -110,7 +110,7 @@ export default {
this.$store.state.meta.metas &&
this.$store.state.meta.metas[this.rollup.table.table_name] &&
this.$store.state.meta.metas[this.rollup.table.table_name].columns
) || []).filter(col => ![UITypes.Lookup, UITypes.Rollup, UITypes.LinkToAnotherRecord].includes(col.uidt) && !isSystemColumn(col))
) || []).filter(col => !isVirtualCol(col.uidt) && !isSystemColumn(col))
}
},
async mounted() {

Loading…
Cancel
Save