Commit 13f8f86
Guard against overlapping reorder requests; drop dead pivot guards
- Ignore further drops while a reorder request is in flight, so rapid
successive drags can't race and persist a stale order (the response that
lands last would otherwise win).
- Remove the `$record->pivot` null guards in applyDeferredRelationOrder:
records from a sortable belongsToMany/morphToMany/morphedByMany relation
always carry a hydrated pivot, verified in both new-parent and
existing-parent deferred/orphan modes, so the guards were unreachable.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>1 parent 690e905 commit 13f8f86
3 files changed
Lines changed: 13 additions & 2 deletions
File tree
- modules/backend
- behaviors
- widgets/lists/assets/js
- dist
- src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
622 | 622 | | |
623 | 623 | | |
624 | 624 | | |
625 | | - | |
| 625 | + | |
626 | 626 | | |
627 | 627 | | |
628 | 628 | | |
629 | 629 | | |
630 | 630 | | |
| 631 | + | |
631 | 632 | | |
632 | 633 | | |
633 | 634 | | |
| |||
0 commit comments