|
|
@ -164,7 +164,7 @@ export const useViewGroupBy = (view: Ref<ViewType | undefined>, where?: Computed |
|
|
|
const groupby = groupBy.value[group.nestedIn.length] |
|
|
|
const groupby = groupBy.value[group.nestedIn.length] |
|
|
|
|
|
|
|
|
|
|
|
const nestedWhere = calculateNestedWhere(group.nestedIn, where?.value) |
|
|
|
const nestedWhere = calculateNestedWhere(group.nestedIn, where?.value) |
|
|
|
if (!groupby || !(groupby.column.title)) return |
|
|
|
if (!groupby || !groupby.column.title) return |
|
|
|
|
|
|
|
|
|
|
|
if (isPublic.value && !sharedView.value?.uuid) { |
|
|
|
if (isPublic.value && !sharedView.value?.uuid) { |
|
|
|
return |
|
|
|
return |
|
|
@ -203,16 +203,16 @@ export const useViewGroupBy = (view: Ref<ViewType | undefined>, where?: Computed |
|
|
|
} |
|
|
|
} |
|
|
|
if (groupby.column.title && groupby.column.uidt) { |
|
|
|
if (groupby.column.title && groupby.column.uidt) { |
|
|
|
acc.push({ |
|
|
|
acc.push({ |
|
|
|
key: valueToTitle(curr[(groupby.column.title)!], groupby.column), |
|
|
|
key: valueToTitle(curr[groupby.column.title!], groupby.column), |
|
|
|
column: groupby.column, |
|
|
|
column: groupby.column, |
|
|
|
count: +curr.count, |
|
|
|
count: +curr.count, |
|
|
|
color: findKeyColor(curr[(groupby.column.title)!], groupby.column), |
|
|
|
color: findKeyColor(curr[groupby.column.title!], groupby.column), |
|
|
|
nestedIn: [ |
|
|
|
nestedIn: [ |
|
|
|
...group!.nestedIn, |
|
|
|
...group!.nestedIn, |
|
|
|
{ |
|
|
|
{ |
|
|
|
title: groupby.column.title, |
|
|
|
title: groupby.column.title, |
|
|
|
column_name: (groupby.column.title)!, |
|
|
|
column_name: groupby.column.title!, |
|
|
|
key: valueToTitle(curr[(groupby.column.title)!], groupby.column), |
|
|
|
key: valueToTitle(curr[groupby.column.title!], groupby.column), |
|
|
|
column_uidt: groupby.column.uidt, |
|
|
|
column_uidt: groupby.column.uidt, |
|
|
|
}, |
|
|
|
}, |
|
|
|
], |
|
|
|
], |
|
|
|