Change the logic according to archieve show by status.
This commit is contained in:
parent
d13c48dd39
commit
2781da8906
@ -113,9 +113,9 @@ const JobList = ({ isArchive }) => {
|
|||||||
|
|
||||||
const canArchive = (statusId) => {
|
const canArchive = (statusId) => {
|
||||||
const closedId = JOBS_STATUS_IDS.find((s) => s.label === "Closed")?.id;
|
const closedId = JOBS_STATUS_IDS.find((s) => s.label === "Closed")?.id;
|
||||||
const workDoneId = JOBS_STATUS_IDS.find((s) => s.label === "Work Done")?.id;
|
const reviewDoneId = JOBS_STATUS_IDS.find((s) => s.label === "Review Done")?.id;
|
||||||
|
|
||||||
return statusId === closedId || statusId === workDoneId;
|
return statusId === closedId || statusId === reviewDoneId;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user