Build render (#2188)

* Build for arm and amd

* Add scripts

* Add scripts
This commit is contained in:
Charles Bochet
2023-10-22 23:47:43 +02:00
committed by GitHub
parent e67b2d23ae
commit 42af74eb46
15 changed files with 107 additions and 53 deletions

View File

@ -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}

View File

@ -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) {