mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
Resolve sorting in list-o2m-tree-view on dnd
This commit is contained in:
@@ -210,7 +210,7 @@ export default defineComponent({
|
||||
return (value || []).map((item, index) => {
|
||||
return {
|
||||
...item,
|
||||
[relation.value.meta!.sort_field!]: index,
|
||||
[relation.value.meta!.sort_field!]: index + 1,
|
||||
[relation.value.meta!.one_field!]: addSort(item[relation.value.meta!.one_field!]),
|
||||
};
|
||||
});
|
||||
@@ -227,7 +227,7 @@ export default defineComponent({
|
||||
}
|
||||
|
||||
function onDraggableChange() {
|
||||
emit('input', stagedValues.value);
|
||||
emitValue(stagedValues.value);
|
||||
}
|
||||
|
||||
function useSelection() {
|
||||
|
||||
Reference in New Issue
Block a user