Build render (#2188)
* Build for arm and amd * Add scripts * Add scripts
This commit is contained in:
@ -60,7 +60,7 @@ export const Favorites = () => {
|
||||
draggableItems={
|
||||
<>
|
||||
{favorites.map((favorite, index) => {
|
||||
const { id, person, company } = favorite;
|
||||
const { id, person, company, position } = favorite;
|
||||
return (
|
||||
<DraggableItem
|
||||
key={id}
|
||||
@ -68,6 +68,7 @@ export const Favorites = () => {
|
||||
index={index}
|
||||
itemComponent={
|
||||
<>
|
||||
{position}
|
||||
{person && (
|
||||
<NavItem
|
||||
key={id}
|
||||
|
||||
@ -110,7 +110,7 @@ export const useFavorites = () => {
|
||||
}
|
||||
|
||||
if (destIndex === favorites.length - 1) {
|
||||
return favorites[destIndex].position + 1;
|
||||
return favorites[destIndex - 1].position + 1;
|
||||
}
|
||||
|
||||
if (sourceIndex < destIndex) {
|
||||
|
||||
Reference in New Issue
Block a user