Compare commits
3 Commits
2ccc895bef
...
067f7306d4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
067f7306d4 | ||
|
|
6b06c888e5 | ||
|
|
ae33594691 |
@ -13,7 +13,7 @@ import { useEmployeeProfile } from "../../hooks/useEmployees";
|
|||||||
import { clearCacheKey, getCachedData } from "../../slices/apiDataManager";
|
import { clearCacheKey, getCachedData } from "../../slices/apiDataManager";
|
||||||
import { clearApiCacheKey } from "../../slices/apiCacheSlice";
|
import { clearApiCacheKey } from "../../slices/apiCacheSlice";
|
||||||
|
|
||||||
const mobileNumberRegex = /^[7-9]\d{9}$/;
|
const mobileNumberRegex = /^[0-9]\d{9}$/;
|
||||||
|
|
||||||
const ManageEmployee = ({ employeeId, onClosed }) => {
|
const ManageEmployee = ({ employeeId, onClosed }) => {
|
||||||
const dispatch = useDispatch();
|
const dispatch = useDispatch();
|
||||||
|
|||||||
@ -66,11 +66,10 @@ const WorkItem = ({ workItem, forBuilding, forFloor, forWorkArea }) => {
|
|||||||
|
|
||||||
const handleSubmit = async () => {
|
const handleSubmit = async () => {
|
||||||
setLoadingDelete(true);
|
setLoadingDelete(true);
|
||||||
try {
|
try
|
||||||
|
{
|
||||||
const updatedProject = { ...projects_Details };
|
const updatedProject = { ...projects_Details };
|
||||||
const response = await ProjectRepository.deleteProjectTask(
|
const response = await ProjectRepository.deleteProjectTask( workItem.workItemId || workItem.id);
|
||||||
workItem.workItemId
|
|
||||||
);
|
|
||||||
const newProject = {
|
const newProject = {
|
||||||
...updatedProject,
|
...updatedProject,
|
||||||
buildings: updatedProject.buildings.map((building) =>
|
buildings: updatedProject.buildings.map((building) =>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user