diff --git a/products/ASC.Files/Client/src/store/HotkeyStore.js b/products/ASC.Files/Client/src/store/HotkeyStore.js index 7e98ba5f54..d2f1f0fa1c 100644 --- a/products/ASC.Files/Client/src/store/HotkeyStore.js +++ b/products/ASC.Files/Client/src/store/HotkeyStore.js @@ -525,16 +525,16 @@ class HotkeyStore { selectionsUp.push(filesList[prevForTileUpItemIndex]); prevForTileUpItemIndex++; } + } - let counterToUp = 0; - if (prevForTileUpIndex > hotkeyCaretStartIndex) { - counterToUp = prevForTileUpIndex - hotkeyCaretStartIndex; - } + let counterToUp = 0; + if (prevForTileUpIndex > hotkeyCaretStartIndex) { + counterToUp = prevForTileUpIndex - hotkeyCaretStartIndex; + } - while (counterToUp !== 0) { - selectionsUp.push(filesList[hotkeyCaretStartIndex + counterToUp]); - counterToUp--; - } + while (counterToUp !== 0) { + selectionsUp.push(filesList[hotkeyCaretStartIndex + counterToUp]); + counterToUp--; } } return selectionsUp;