ar-design 0.3.21 → 0.3.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -22,13 +22,13 @@ const KanbanBoard = function ({ trackBy, columns, onChange }) {
22
22
  };
23
23
  }
24
24
  if (board.key === toColumn) {
25
- const newItems = [...board.items];
26
- const safeIndex = Math.min(_hoverItemIndex.current ?? Infinity, newItems.length); // son elemandan fazla olmasın.
27
- newItems.splice(safeIndex, 0, item);
25
+ const boardItems = [...board.items];
26
+ const safeIndex = Math.min(_hoverItemIndex.current ?? Infinity, boardItems.length); // son elemandan fazla olmasın.
27
+ boardItems.splice(safeIndex, 0, item);
28
28
  onChange?.(item, board.key, safeIndex);
29
29
  return {
30
30
  ...board,
31
- items: newItems,
31
+ items: boardItems,
32
32
  };
33
33
  }
34
34
  return board;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ar-design",
3
- "version": "0.3.21",
3
+ "version": "0.3.22",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",