mirror of
https://github.com/hcengineering/platform.git
synced 2025-05-30 12:20:00 +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 (offset === -2 || offset === 2) {
|
||||||
if (level + 1 >= viewOptions.groupBy.length) {
|
if (level + 1 >= viewOptions.groupBy.length) {
|
||||||
if (offset === -2) {
|
if (offset === -2) {
|
||||||
|
if (listListCategory?.[0] == null) {
|
||||||
|
return
|
||||||
|
}
|
||||||
const obj = listListCategory[0].getLimited()[0]
|
const obj = listListCategory[0].getLimited()[0]
|
||||||
listListCategory[0].expand()
|
listListCategory[0].expand()
|
||||||
select(0, obj)
|
select(0, obj)
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
|
if (listListCategory?.[0] == null) {
|
||||||
|
return
|
||||||
|
}
|
||||||
const g = listListCategory[categories.length - 1].getLimited()
|
const g = listListCategory[categories.length - 1].getLimited()
|
||||||
listListCategory[categories.length - 1].expand()
|
listListCategory[categories.length - 1].expand()
|
||||||
const obj = g[g.length - 1]
|
const obj = g[g.length - 1]
|
||||||
|
Loading…
Reference in New Issue
Block a user