Browse Source

fix(nc-gui): remove console

pull/8309/head
Ramesh Mane 7 months ago
parent
commit
879cdc93ac
  1. 1
      packages/nc-gui/components/smartsheet/toolbar/GroupByMenu.vue
  2. 10
      packages/nc-gui/composables/useViewGroupBy.ts

1
packages/nc-gui/components/smartsheet/toolbar/GroupByMenu.vue

@ -132,7 +132,6 @@ const saveGroupBy = async () => {
}
const addFieldToGroupBy = (column: ColumnType) => {
console.log('groupByField', column)
_groupBy.value.push({ fk_column_id: column.id, sort: 'asc', order: _groupBy.value.length + 1 })
saveGroupBy()
showCreateGroupBy.value = false

10
packages/nc-gui/composables/useViewGroupBy.ts

@ -61,10 +61,8 @@ export const useViewGroupBy = (view: Ref<ViewType | undefined>, where?: Computed
const supportedLookups = ref<string[]>([])
const fieldsToGroupBy = computed(() => {
const fields = meta?.value?.columns || []
return fields.filter((field) => {
const fieldsToGroupBy = computed(() =>
(meta?.value?.columns || []).filter((field) => {
if (excludedGroupingUidt.includes(field.uidt as UITypes)) return false
if (field.uidt === UITypes.Lookup) {
@ -72,8 +70,8 @@ export const useViewGroupBy = (view: Ref<ViewType | undefined>, where?: Computed
}
return true
})
})
}),
)
const rootGroup = ref<Group>({
key: 'root',

Loading…
Cancel
Save