diff --git a/products/ASC.Files/Client/src/store/files/selectors.js b/products/ASC.Files/Client/src/store/files/selectors.js index a8e23056f8..ceaece7838 100644 --- a/products/ASC.Files/Client/src/store/files/selectors.js +++ b/products/ASC.Files/Client/src/store/files/selectors.js @@ -1028,7 +1028,9 @@ export const getHeaderIndeterminate = createSelector( getSelectionLength, getItemsList, (headerVisible, selectionLength, items) => { - return headerVisible && selectionLength < items.length; + return headerVisible && selectionLength + ? selectionLength < items.length + : false; } );