Web: Files: FormGallery: fixed tiles display

This commit is contained in:
Nikita Gopienko 2022-12-02 17:12:04 +03:00
parent 72a7240cb8
commit fa4674f2b0

View File

@ -128,7 +128,7 @@ const InfiniteGrid = (props) => {
);
};
export default inject(({ filesStore, oformsStore }) => {
export default inject(({ auth, filesStore, oformsStore }) => {
const {
oformFiles,
hasMoreForms,
@ -139,6 +139,7 @@ export default inject(({ filesStore, oformsStore }) => {
const { getCountTilesInRow } = filesStore;
const filesLength = oformFiles.length;
const { isVisible } = auth.infoPanelStore;
return {
filesList: oformFiles,
@ -147,5 +148,6 @@ export default inject(({ filesStore, oformsStore }) => {
fetchMoreFiles: loadMoreForms,
filesLength,
getCountTilesInRow,
isVisible,
};
})(observer(InfiniteGrid));