bug fixed
This commit is contained in:
parent
4164ffe4a6
commit
289d989928
@ -6,7 +6,7 @@ import apiClient from '@/services/api/apiClient';
|
||||
import { getBeforePreviousData, getQuarterPeriods } from '@/services/submissions/submissionService';
|
||||
import { getProductSubmissionHistory } from '@/services/submissions/submissionService';
|
||||
import { Line } from 'react-chartjs-2';
|
||||
|
||||
|
||||
// Helper function to get months for quarter
|
||||
const getMonthsForQuarter = (quarter, year) => {
|
||||
const monthMap = {
|
||||
@ -524,7 +524,7 @@ const ValidationReview = () => {
|
||||
const checked = e.target.checked;
|
||||
setShowPreviousNext(checked);
|
||||
|
||||
// ❌ Uncheck → reset
|
||||
// Uncheck → reset
|
||||
if (!checked) {
|
||||
setNextQuarterData({});
|
||||
setAdditionalForecastQuarter("");
|
||||
@ -577,7 +577,7 @@ const ValidationReview = () => {
|
||||
|
||||
setNextQuarterData(mappedDataMap);
|
||||
|
||||
// 🟢 DIRECTLY FROM API – NO CALCULATION
|
||||
// DIRECTLY FROM API – NO CALCULATION
|
||||
const qp = response?.data?.quarter_periods;
|
||||
|
||||
// Quarter & Year
|
||||
|
||||
Loading…
Reference in New Issue
Block a user