Commit 4513e18
fix(vendors): skip assignee validation when assignee hasn't changed
The form sends the existing assigneeId on every PATCH even when
the user only changed a different field (e.g. website). If the
vendor's current assignee is a platform admin, every update fails
with "Cannot assign a platform admin as assignee" — even though
no one is trying to change the assignee.
Only run validateAssigneeNotPlatformAdmin when assigneeId is
actually being changed to a different value.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 762d9b9 commit 4513e18
1 file changed
+6
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
600 | 600 | | |
601 | 601 | | |
602 | 602 | | |
603 | | - | |
| 603 | + | |
604 | 604 | | |
605 | | - | |
| 605 | + | |
| 606 | + | |
| 607 | + | |
| 608 | + | |
| 609 | + | |
606 | 610 | | |
607 | 611 | | |
608 | 612 | | |
| |||
0 commit comments