mirror of
https://github.com/hcengineering/platform.git
synced 2025-04-13 19:58:09 +00:00
UBERF-5042: Fix exception in list view (#4419)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
261cd3b4df
commit
8eacf59fda
@ -227,11 +227,17 @@
|
||||
if (offset === -2 || offset === 2) {
|
||||
if (level + 1 >= viewOptions.groupBy.length) {
|
||||
if (offset === -2) {
|
||||
if (listListCategory?.[0] == null) {
|
||||
return
|
||||
}
|
||||
const obj = listListCategory[0].getLimited()[0]
|
||||
listListCategory[0].expand()
|
||||
select(0, obj)
|
||||
return
|
||||
} else {
|
||||
if (listListCategory?.[0] == null) {
|
||||
return
|
||||
}
|
||||
const g = listListCategory[categories.length - 1].getLimited()
|
||||
listListCategory[categories.length - 1].expand()
|
||||
const obj = g[g.length - 1]
|
||||
|
Loading…
Reference in New Issue
Block a user