lint
All checks were successful
backend-action / build-image (push) Successful in 1m9s

This commit is contained in:
2024-05-16 17:26:27 +07:00
parent 5c4abf24bb
commit c1a019a461
13 changed files with 246 additions and 63 deletions

View File

@@ -14,10 +14,10 @@ export default function Grouping({
removeJob,
updateGroup,
}: Props) {
let [selectedJob, setSelectedJob] = useState<JobCategory[]>([]);
const [selectedJob, setSelectedJob] = useState<JobCategory[]>([]);
function addJob(id: string) {
let _id = parseInt(id);
let job = availableJobs.find((j) => j.id == _id);
const _id = parseInt(id);
const job = availableJobs.find((j) => j.id == _id);
if (job == undefined) return;
setSelectedJob((old) => [...old, job]);
selectJob(_id);