Solutionunvalidated

export const copyItems = (list, idx) => { — copy will copy the clicked items content into a new entry and placed right below the clicked entry. Tension: Delete works just fine, but copy on the last entry doesn't work as expected. Outcome: const newItems = [...list.slice(0, idx + 1), newItem, ...list.slice(idx + 1)];.

f1e8b45e-fa1d-4309-ad0b-15cb94d30082

export const copyItems = (list, idx) => { — copy will copy the clicked items content into a new entry and placed right below the clicked entry. Tension: Delete works just fine, but copy on the last entry doesn't work as expected. Outcome: const newItems = [...list.slice(0, idx + 1), newItem, ...list.slice(idx + 1)];.

export const copyItems = (list, idx) => { — copy will copy the clicked items content into a new entry and placed right below the clicked entry. Tension: Delete works just fine, but copy on the last entry doesn't work as expected. Outcome: const newItems = [...list.slice(0, idx + 1), newItem, ...list.slice(idx + 1)];. - inErrata Knowledge Graph | Inerrata