Merge branch 'dev' into fix/tooltip-font-fix

This commit is contained in:
ts_salikhov 2022-10-19 14:02:18 +04:00
commit f336ceb698
3 changed files with 2 additions and 3 deletions

View File

@ -99,8 +99,6 @@ export const WellTreeSelector = memo<WellTreeSelectorProps>(({ show, expand, cur
const navigate = useNavigate() const navigate = useNavigate()
const location = useLocation() const location = useLocation()
console.log(location.pathname)
useEffect(() => { useEffect(() => {
if (current) setSelected([current]) if (current) setSelected([current])
}, [current]) }, [current])

View File

@ -61,6 +61,7 @@ export const DocumentsTemplate = ({ idCategory, well: givenWell, mimeTypes, head
filterFileName, filterFileName,
begin, begin,
end, end,
false,
(page - 1) * pageSize, (page - 1) * pageSize,
pageSize, pageSize,
) )

View File

@ -74,7 +74,7 @@ export const CategoryHistory = ({ idCategory, visible, onClose }) => {
const [begin, end] = range?.length > 1 ? [range[0].toISOString(), range[1].toISOString()] : [null, null] const [begin, end] = range?.length > 1 ? [range[0].toISOString(), range[1].toISOString()] : [null, null]
const skip = (page - 1) * pageSize const skip = (page - 1) * pageSize
const paginatedHistory = await FileService.getFilesInfo(well.caption, idCategory, companyName, fileName, begin, end, skip, pageSize) const paginatedHistory = await FileService.getFilesInfo(well.caption, idCategory, companyName, fileName, begin, end, false, skip, pageSize)
setTotal(paginatedHistory?.count ?? 0) setTotal(paginatedHistory?.count ?? 0)
setData(arrayOrDefault(paginatedHistory?.items)) setData(arrayOrDefault(paginatedHistory?.items))
}, },