fix: duplicate on edit
This commit is contained in:
parent
5fb4692746
commit
780fa4cb55
1 changed files with 6 additions and 1 deletions
|
|
@ -390,7 +390,12 @@ export class TaskController extends Controller {
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
createMany: {
|
createMany: {
|
||||||
data: body.taskList,
|
data: body.taskList.filter(
|
||||||
|
(lhs) =>
|
||||||
|
!record?.taskList.find(
|
||||||
|
(rhs) => lhs.requestWorkId === rhs.requestWorkId && lhs.step === rhs.step,
|
||||||
|
),
|
||||||
|
),
|
||||||
skipDuplicates: true,
|
skipDuplicates: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue