[client] Fix oobe

This commit is contained in:
Abhishek Shroff
2024-09-06 10:05:00 +05:30
parent 54e44fdb41
commit fefa3dc251

View File

@@ -70,9 +70,9 @@ class _FolderContentsViewState extends State<FolderContentsView> {
FocusUpIntent: CallbackAction<FocusUpIntent>(onInvoke: (i) {
if (resources.isEmpty) return;
final index = focusIndex == -1
? resources.length
? (resources.length - 1)
: focusIndex > 0
? min(focusIndex - 1, resources.length)
? min(focusIndex - 1, resources.length - 1)
: 0;
updateSelection(index, i.mode, true);
return null;