mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-03 03:57:10 +00:00
refactor: remove unused function
This commit is contained in:
@@ -205,52 +205,7 @@ export function useGridViewData(
|
||||
return targetGroup.count
|
||||
}
|
||||
|
||||
async function getGroupFilter(path: Array<number> = [], ignoreWhereFilter = false) {
|
||||
let group = findGroupByPath(cachedGroups.value, path)
|
||||
|
||||
if (!group) {
|
||||
try {
|
||||
let currentGroups = cachedGroups.value
|
||||
let parentGroup: CanvasGroup | undefined
|
||||
let targetIndex: number | undefined
|
||||
|
||||
for (let depth = 0; depth < path.length; depth++) {
|
||||
const groupIndex = path[depth]
|
||||
const currentGroup = currentGroups.get(groupIndex)
|
||||
|
||||
if (!currentGroup) {
|
||||
targetIndex = groupIndex
|
||||
break
|
||||
}
|
||||
|
||||
if (depth === path.length - 1) {
|
||||
targetIndex = groupIndex
|
||||
break
|
||||
}
|
||||
|
||||
if (!currentGroup.isExpanded || !currentGroup.groups) {
|
||||
return ''
|
||||
}
|
||||
|
||||
parentGroup = currentGroup
|
||||
currentGroups = currentGroup.groups
|
||||
}
|
||||
|
||||
if (targetIndex !== undefined) {
|
||||
await fetchMissingGroupChunks(targetIndex, targetIndex, parentGroup)
|
||||
}
|
||||
|
||||
group = findGroupByPath(cachedGroups.value, path)
|
||||
} catch (error) {
|
||||
console.error(`Failed to load group for path ${path}:`, error)
|
||||
return ''
|
||||
}
|
||||
}
|
||||
|
||||
return buildNestedWhere(group, ignoreWhereFilter ? '' : where?.value)
|
||||
}
|
||||
|
||||
async function getGroupFilterArr(path: Array<number> = [], ignoreWhereFilter = false) {
|
||||
async function getGroupFilterArr(path: Array<number> = [], _ignoreWhereFilter = false) {
|
||||
let group = findGroupByPath(cachedGroups.value, path)
|
||||
|
||||
if (!group) {
|
||||
|
||||
Reference in New Issue
Block a user