handle merge issues in chart and build error
This commit is contained in:
parent
56c8b31938
commit
e0264030f5
@ -52,7 +52,7 @@ const HorizontalBarChart = ({
|
||||
|
||||
// Replace 0 with 1 for visual purposes, but display "0%" in labels
|
||||
const adjustedSeriesData = sortedSeriesData.map((val) =>
|
||||
val === 0 ? 0.1 : val
|
||||
val === 0 ? 0.5 : val
|
||||
);
|
||||
|
||||
// Dynamically adjust chart height if only one data point
|
||||
|
@ -5,7 +5,6 @@ import { z } from "zod";
|
||||
|
||||
import { useActivitiesMaster } from "../../../hooks/masterHook/useMaster";
|
||||
import { useProjectDetails } from "../../../hooks/useProjects";
|
||||
import useSelect from "../../common/useSelect";
|
||||
import { useDispatch, useSelector } from "react-redux";
|
||||
import ProjectRepository from "../../../repositories/ProjectRepository";
|
||||
import {
|
||||
@ -85,8 +84,8 @@ const EditActivityModal = ({
|
||||
floorId: floor?.id,
|
||||
workAreaId: workArea?.id,
|
||||
};
|
||||
console.log(finalData)
|
||||
|
||||
console.log(finalData);
|
||||
|
||||
ProjectRepository.manageProjectTasks([finalData])
|
||||
.then((response) => {
|
||||
if (response?.data[0]) {
|
||||
@ -125,7 +124,7 @@ const EditActivityModal = ({
|
||||
? workItem
|
||||
: item
|
||||
)
|
||||
: [...workArea.workItems, workItem];
|
||||
: [...workArea.workItems, workItem];
|
||||
})(),
|
||||
}
|
||||
: workArea
|
||||
@ -140,7 +139,7 @@ const EditActivityModal = ({
|
||||
cacheData("projectInfo", {
|
||||
projectId: newProject.id,
|
||||
data: newProject,
|
||||
} );
|
||||
});
|
||||
resetForm();
|
||||
dispatch(refreshData(true));
|
||||
onClose();
|
||||
|
Loading…
x
Reference in New Issue
Block a user