fix key left navigation

This commit is contained in:
Ruben Fiszel
2023-03-16 12:48:31 +01:00
parent c1dd35c3f0
commit ca3e3624c0
@@ -54,12 +54,10 @@
if (currentIndex !== -1 && currentIndex > 0) {
const left = sortedGridItems[currentIndex - 1]
if (left.data.type === 'tablecomponent') {
if (left.data.actionButtons.length >= 1) {
$selectedComponent = left.data.actionButtons[left.data.actionButtons.length - 1].id
} else {
$selectedComponent = left.id
}
if (left.data.type === 'tablecomponent' && left.data.actionButtons.length >= 1) {
$selectedComponent = left.data.actionButtons[left.data.actionButtons.length - 1].id
} else {
$selectedComponent = left.id
}
}
}