fix: change order wrong value in workflow management page (#50)

* fix: responsible person not display correctly after move

* fix: typo
This commit is contained in:
Methapon Metanipat 2024-11-01 17:20:11 +07:00 committed by GitHub
parent 0ef389c69b
commit 9655597679
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 34 additions and 27 deletions

View file

@ -194,9 +194,9 @@ function assignFormData(workflowData: WorkflowTemplate) {
status: workflowData.status,
name: workflowData.name,
step: workflowData.step.map((s, i) => {
userInTable.value[i] = { name: s.name, resposiblePerson: [] };
userInTable.value[i] = { name: s.name, responsiblePerson: [] };
s.responsiblePerson.forEach((p) => {
userInTable.value[i].resposiblePerson.push({
userInTable.value[i].responsiblePerson.push({
id: p.user.id,
selectedImage: p.user.selectedImage,
gender: p.user.gender,