Skip to content

Commit 175243e

Browse files
authored
Merge pull request #2020 from djnunez-aot/loader-bug
Remove additional loader
2 parents 36e7010 + cdbdf5c commit 175243e

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

epictrack-web/src/components/reports/resourceForecast/ResourceForecast.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,6 @@ export default function ResourceForecast() {
351351
]
352352
);
353353
const fetchReportData = React.useCallback(async () => {
354-
setIsLoading(true);
355354
try {
356355
const reportData = await ReportService.fetchReportData(
357356
REPORT_TYPE.RESOURCE_FORECAST,
@@ -360,7 +359,6 @@ export default function ResourceForecast() {
360359
color_intensity: "25",
361360
}
362361
);
363-
setIsLoading(false);
364362
if (reportData.status && reportData.status === 200) {
365363
const data = reportData.data as never[];
366364
data.forEach((element) => {

0 commit comments

Comments
 (0)