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