Skip to content

Commit 0cebd8a

Browse files
committed
Fix drag lists did not work. Part 2.
Thanks to xet7 !
1 parent 8662c96 commit 0cebd8a

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

client/components/swimlanes/swimlanes.js

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -730,20 +730,17 @@ setTimeout(() => {
730730

731731
const listDomElement = ui.item.get(0);
732732
if (!listDomElement) {
733-
console.error('List DOM element not found during drag stop');
734733
return;
735734
}
736735

737736
let list;
738737
try {
739738
list = Blaze.getData(listDomElement);
740739
} catch (error) {
741-
console.error('Error getting list data:', error);
742740
return;
743741
}
744742

745743
if (!list) {
746-
console.error('List data not found for element:', listDomElement);
747744
return;
748745
}
749746

@@ -756,7 +753,6 @@ setTimeout(() => {
756753
try {
757754
targetSwimlaneId = targetSwimlaneDom.attr('id').replace('swimlane-', '');
758755
} catch (error) {
759-
console.error('Error getting target swimlane ID:', error);
760756
return;
761757
}
762758
} else {
@@ -808,7 +804,6 @@ setTimeout(() => {
808804
$set: updateData,
809805
});
810806
} catch (error) {
811-
console.error('Error updating list:', error);
812807
return;
813808
}
814809

@@ -879,20 +874,17 @@ setTimeout(() => {
879874

880875
const listDomElement = ui.item.get(0);
881876
if (!listDomElement) {
882-
console.error('List DOM element not found during drag stop');
883877
return;
884878
}
885879

886880
let list;
887881
try {
888882
list = Blaze.getData(listDomElement);
889883
} catch (error) {
890-
console.error('Error getting list data:', error);
891884
return;
892885
}
893886

894887
if (!list) {
895-
console.error('List data not found for element:', listDomElement);
896888
return;
897889
}
898890

@@ -905,7 +897,6 @@ setTimeout(() => {
905897
try {
906898
targetSwimlaneId = targetSwimlaneDom.attr('id').replace('swimlane-', '');
907899
} catch (error) {
908-
console.error('Error getting target swimlane ID:', error);
909900
return;
910901
}
911902
} else {
@@ -957,7 +948,6 @@ setTimeout(() => {
957948
$set: updateData,
958949
});
959950
} catch (error) {
960-
console.error('Error updating list:', error);
961951
return;
962952
}
963953

0 commit comments

Comments
 (0)