Skip to content

Commit

Permalink
Fix duplicate id issue
Browse files Browse the repository at this point in the history
  • Loading branch information
parwatcodes committed Jun 27, 2023
1 parent ba1e5b2 commit d0ee1ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pages/js/dashboard.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function appendToList(data, cardContainerType, listType) {
data.forEach(item => {
const card = document.createElement('div');
card.className = 'card';
card.id = `${listType}`;
card.id = item.id;
card.draggable = true;
card.onclick = (event) => toggleTaskModal(event, listType, item.id);

Expand Down

0 comments on commit d0ee1ad

Please sign in to comment.