When we in Archive tab then canvas will be open now it work correctly.

This commit is contained in:
Kartik Sharma 2025-11-21 12:21:22 +05:30
parent 2781da8906
commit 98e9a8b625

View File

@ -60,12 +60,17 @@ const JobList = ({ isArchive }) => {
label: "Title", label: "Title",
getValue: (e) => ( getValue: (e) => (
<span <span
className="fw-semibold text-truncate d-inline-block cursor-pointer" className={`fw-semibold text-truncate d-inline-block ${!isArchive ? "cursor-pointer" : ""}`}
style={{ style={{
maxWidth: "100%", maxWidth: "100%",
width: "210px", width: "210px",
}} }}
onClick={() => setSelectedJob({ showCanvas: true, job: e?.id })} onClick={() => {
if (!isArchive) {
setSelectedJob({ showCanvas: true, job: e?.id });
}
}}
title={e?.title}
> >
{e?.title} {e?.title}
</span> </span>
@ -74,6 +79,7 @@ const JobList = ({ isArchive }) => {
className: "text-start", className: "text-start",
}, },
{ {
key: "dueDate", key: "dueDate",
label: "Due On", label: "Due On",
@ -169,9 +175,14 @@ const JobList = ({ isArchive }) => {
<td <td
key={col.key} key={col.key}
className={col.className} className={col.className}
onClick={() => // onClick={() =>
setSelectedJob({ showCanvas: true, job: row?.id }) // setSelectedJob({ showCanvas: true, job: row?.id })
} // }
onClick={() => {
if (!isArchive) {
setSelectedJob({ showCanvas: true, job: e?.id });
}
}}
> >
{col.getValue(row)} {col.getValue(row)}