diff --git a/client/src/components/job-detail-lines/job-lines.component.jsx b/client/src/components/job-detail-lines/job-lines.component.jsx index b6a179e52..02c73382a 100644 --- a/client/src/components/job-detail-lines/job-lines.component.jsx +++ b/client/src/components/job-detail-lines/job-lines.component.jsx @@ -313,9 +313,12 @@ export function JobLinesComponent({ if (e.key === "clear") { setSelectedLines([]); } else { + const markedTypes = [e.key]; + if (e.key === "PAN") markedTypes.push("PAP"); + if (e.key === "PAS") markedTypes.push("PASL"); setSelectedLines([ ...selectedLines, - ...jobLines.filter((item) => item.part_type === e.key), + ...jobLines.filter((item) => markedTypes.includes(item.part_type)), ]); } }; @@ -378,7 +381,7 @@ export function JobLinesComponent({ setState({ ...state, filteredInfo: { - part_type: ["PAN,PAL,PAA,PAS,PASL"], + part_type: ["PAN,PAL,PAA,PAP,PAS,PASL"], }, }); }}