Skip to content

Commit

Permalink
Merge pull request #1918 from holium/fix-map-to-foreach
Browse files Browse the repository at this point in the history
Convert map to foreach
  • Loading branch information
gdbroman authored Jul 13, 2023
2 parents b341bf9 + 1e474ba commit c8120b5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ const AppGridPresenter = ({ maxWidth }: AppGridProps) => {
setItems(nextState);
const newGrid = Object();

// eslint-disable-next-line array-callback-return
nextState.map((app, index: number) => {
nextState.forEach((app, index: number) => {
newGrid[index] = app.id;
});
bazaarStore.reorderApp(sourceIndex, targetIndex, newGrid);
Expand Down

0 comments on commit c8120b5

Please sign in to comment.