Skip to content
Snippets Groups Projects
Commit 53da38ac authored by Aleksandras Kostarevas's avatar Aleksandras Kostarevas
Browse files

Fix alt pages crash

parent 079caf71
No related branches found
No related tags found
No related merge requests found
......@@ -234,7 +234,7 @@ Layout: $layoutName
element.page.altIdx?.let { altIdx ->
val baseElement = element.copy(page = KeyboardLayoutPage.Base)
val baseLayout = elements[baseElement]
baseLayout?.altPages?.get(altIdx)
baseLayout?.altPages?.getOrNull(altIdx)
}?.let {
mainLayout.copy(rows = it)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment