Compare commits

..

3 Commits

Author SHA1 Message Date
Pramod Mahajan
067f7306d4 Merge branch 'Issue_May_2W' of https://git.marcoaiot.com/admin/marco.pms.web into Issue_May_2W 2025-05-09 17:45:50 +05:30
Pramod Mahajan
6b06c888e5 removed debugger 2025-05-09 17:45:14 +05:30
Pramod Mahajan
ae33594691 mobile fied accept first digit 0 to 9 2025-05-09 17:44:55 +05:30
2 changed files with 4 additions and 5 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 = /^[7-9]\d{9}$/;
const mobileNumberRegex = /^[0-9]\d{9}$/;
const ManageEmployee = ({ employeeId, onClosed }) => {
const dispatch = useDispatch();

View File

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