Compare commits

..

No commits in common. "067f7306d41f18469a021f7be4889aadff636326" and "2ccc895befed0f120058cd6ced28e7ef42b54a35" have entirely different histories.

2 changed files with 5 additions and 4 deletions

View File

@ -13,7 +13,7 @@ import { useEmployeeProfile } from "../../hooks/useEmployees";
import { clearCacheKey, getCachedData } from "../../slices/apiDataManager";
import { clearApiCacheKey } from "../../slices/apiCacheSlice";
const mobileNumberRegex = /^[0-9]\d{9}$/;
const mobileNumberRegex = /^[7-9]\d{9}$/;
const ManageEmployee = ({ employeeId, onClosed }) => {
const dispatch = useDispatch();

View File

@ -66,10 +66,11 @@ const WorkItem = ({ workItem, forBuilding, forFloor, forWorkArea }) => {
const handleSubmit = async () => {
setLoadingDelete(true);
try
{
try {
const updatedProject = { ...projects_Details };
const response = await ProjectRepository.deleteProjectTask( workItem.workItemId || workItem.id);
const response = await ProjectRepository.deleteProjectTask(
workItem.workItemId
);
const newProject = {
...updatedProject,
buildings: updatedProject.buildings.map((building) =>