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
|
// Replace 0 with 1 for visual purposes, but display "0%" in labels
|
||||||
const adjustedSeriesData = sortedSeriesData.map((val) =>
|
const adjustedSeriesData = sortedSeriesData.map((val) =>
|
||||||
val === 0 ? 0.1 : val
|
val === 0 ? 0.5 : val
|
||||||
);
|
);
|
||||||
|
|
||||||
// Dynamically adjust chart height if only one data point
|
// Dynamically adjust chart height if only one data point
|
||||||
|
|||||||
@ -5,7 +5,6 @@ import { z } from "zod";
|
|||||||
|
|
||||||
import { useActivitiesMaster } from "../../../hooks/masterHook/useMaster";
|
import { useActivitiesMaster } from "../../../hooks/masterHook/useMaster";
|
||||||
import { useProjectDetails } from "../../../hooks/useProjects";
|
import { useProjectDetails } from "../../../hooks/useProjects";
|
||||||
import useSelect from "../../common/useSelect";
|
|
||||||
import { useDispatch, useSelector } from "react-redux";
|
import { useDispatch, useSelector } from "react-redux";
|
||||||
import ProjectRepository from "../../../repositories/ProjectRepository";
|
import ProjectRepository from "../../../repositories/ProjectRepository";
|
||||||
import {
|
import {
|
||||||
@ -85,7 +84,7 @@ const EditActivityModal = ({
|
|||||||
floorId: floor?.id,
|
floorId: floor?.id,
|
||||||
workAreaId: workArea?.id,
|
workAreaId: workArea?.id,
|
||||||
};
|
};
|
||||||
console.log(finalData)
|
console.log(finalData);
|
||||||
|
|
||||||
ProjectRepository.manageProjectTasks([finalData])
|
ProjectRepository.manageProjectTasks([finalData])
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
@ -140,7 +139,7 @@ const EditActivityModal = ({
|
|||||||
cacheData("projectInfo", {
|
cacheData("projectInfo", {
|
||||||
projectId: newProject.id,
|
projectId: newProject.id,
|
||||||
data: newProject,
|
data: newProject,
|
||||||
} );
|
});
|
||||||
resetForm();
|
resetForm();
|
||||||
dispatch(refreshData(true));
|
dispatch(refreshData(true));
|
||||||
onClose();
|
onClose();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user