79120329

Date: 2024-10-24 04:15:51
Score: 0.5
Natty:
Report link

There is a typo in the below statement. The property item is incorrect, it is items.

Original code

function drop(e, board, item) {
   ...
   const currentIndex = currentBoard.item.indexOf(currentItem)
   ...
}

Corrected Code

function drop(e, board, item) {
   ...
   const currentIndex = currentBoard.items.indexOf(currentItem)
   ...
}

Test run by fixing the typo

a) On load of the app

Browser display - On load of the app

b) After the drag and drop of a onto b

Browser display - After the drag and drop of a onto b

c) After the drag and drop of a onto c

Browser display - After the drag and drop of a onto c

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
Posted by: WeDoTheBest4You