fix report warnings

This commit is contained in:
Фролов 2021-07-19 16:19:01 +05:00
parent 03c8f8d3fc
commit 5c7029dd97

View File

@ -67,7 +67,7 @@ export default function Report(props) {
title: 'Название отчета',
dataIndex: 'reportName',
key: 'reportName',
render: name => <a onClick={event => getReportFile(event, name)} download={name}>{name}</a>
render: name => <a href='#' onClick={event => getReportFile(event, name)} download={name}>{name}</a>
},
];
@ -80,7 +80,7 @@ export default function Report(props) {
<br />
<span> { progressData.operation } </span>
<br />
<a onClick={event => {getReportFile(event, progressData.reportName)}}
<a href='#' onClick={event => {getReportFile(event, progressData.reportName)}}
download={progressData.reportName}>
{ progressData.reportName }
</a>
@ -172,7 +172,7 @@ export default function Report(props) {
}
getRepostSizeAsync()
},[rangeDate, step, format])
},[rangeDate, step, format, wellId])
useEffect(()=>{
async function getSuitableReportsAsync() {
@ -204,7 +204,7 @@ export default function Report(props) {
}
getSuitableReportsAsync()
},[rangeDate, step, format])
},[rangeDate, step, format, wellId])
useEffect(()=>{
async function getDatesRange() {
@ -214,7 +214,7 @@ export default function Report(props) {
}
getDatesRange()
},[])
},[wellId])
return (<>
<div className="w-100 mt-20px">