Skip to content

Commit

Permalink
refactor(frontend): change name of param
Browse files Browse the repository at this point in the history
  • Loading branch information
IgnisDa committed Nov 2, 2024
1 parent 683ac3d commit 7b6f01f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions apps/frontend/app/routes/_dashboard.settings.preferences.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -764,11 +764,11 @@ const EditDashboardElement = (props: {

const reorder = <T,>(
array: Array<T>,
{ from, to }: { from: number; to: number },
details: { from: number; to: number },
) => {
const cloned = [...array];
const item = array[from];
cloned.splice(from, 1);
cloned.splice(to, 0, item);
const item = array[details.from];
cloned.splice(details.from, 1);
cloned.splice(details.to, 0, item);
return cloned;
};

0 comments on commit 7b6f01f

Please sign in to comment.