remove minor error while code review
This commit is contained in:
parent
978c7b8e4b
commit
130fffcc16
@ -112,7 +112,6 @@ const AttendLogs = ({ Id }) => {
|
||||
<th>Location</th>
|
||||
<th>Recored By</th>
|
||||
<th>Description</th>
|
||||
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@ -127,7 +126,7 @@ const AttendLogs = ({ Id }) => {
|
||||
<td>
|
||||
{log?.latitude != 0 ? (
|
||||
<i
|
||||
class="bx bx-location-plus text-danger cursor-pointer"
|
||||
className="bx bx-location-plus text-danger cursor-pointer"
|
||||
data-bs-toggle="tooltip"
|
||||
data-bs-offset="0,8"
|
||||
data-bs-placement="top"
|
||||
@ -142,12 +141,13 @@ const AttendLogs = ({ Id }) => {
|
||||
)}
|
||||
</td>
|
||||
<td className="text-wrap">
|
||||
{`${logs[0]?.updatedByEmployee?.firstName ?? ''} ${logs[0]?.updatedByEmployee?.lastName ?? ''}`}
|
||||
{`${logs[0]?.updatedByEmployee?.firstName ?? ""} ${
|
||||
logs[0]?.updatedByEmployee?.lastName ?? ""
|
||||
}`}
|
||||
</td>
|
||||
<td className="text-wrap" colSpan={3}>
|
||||
{log?.comment || "--"}
|
||||
</td>
|
||||
|
||||
</tr>
|
||||
))}
|
||||
</tbody>
|
||||
|
@ -62,7 +62,7 @@ const AttendancePage = () => {
|
||||
modalElement.classList.remove("show");
|
||||
modalElement.style.display = "none";
|
||||
document.body.classList.remove("modal-open");
|
||||
document.querySelector(".modal-backdrop").remove();
|
||||
document.querySelector(".modal-backdrop")?.remove();
|
||||
}
|
||||
};
|
||||
|
||||
@ -95,7 +95,6 @@ const AttendancePage = () => {
|
||||
setAttendances(attendance);
|
||||
}, [attendance]);
|
||||
|
||||
|
||||
useEffect(() => {
|
||||
if (selectedProject === 1 || selectedProject === undefined) {
|
||||
dispatch(setProjectId(loginUser?.projects[0]));
|
||||
@ -108,7 +107,7 @@ const AttendancePage = () => {
|
||||
className="modal fade show"
|
||||
style={{ display: "block" }}
|
||||
id="check-Out-modal"
|
||||
tabindex="-1"
|
||||
tabIndex="-1"
|
||||
aria-hidden="true"
|
||||
>
|
||||
<AttendanceModel
|
||||
|
@ -200,7 +200,6 @@ const DailyTask = () => {
|
||||
task.assignmentDate.includes(date)
|
||||
).map((task, index) => {
|
||||
const refIndex = index * 10 + i;
|
||||
console.log(refIndex);
|
||||
return (
|
||||
<React.Fragment key={index}>
|
||||
<tr>
|
||||
|
Loading…
x
Reference in New Issue
Block a user