Fix drag lists did not work. Part 2.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2025-10-23 04:35:33 +03:00
parent 8662c96d1c
commit 0cebd8aa4d

View file

@ -730,7 +730,6 @@ setTimeout(() => {
const listDomElement = ui.item.get(0); const listDomElement = ui.item.get(0);
if (!listDomElement) { if (!listDomElement) {
console.error('List DOM element not found during drag stop');
return; return;
} }
@ -738,12 +737,10 @@ setTimeout(() => {
try { try {
list = Blaze.getData(listDomElement); list = Blaze.getData(listDomElement);
} catch (error) { } catch (error) {
console.error('Error getting list data:', error);
return; return;
} }
if (!list) { if (!list) {
console.error('List data not found for element:', listDomElement);
return; return;
} }
@ -756,7 +753,6 @@ setTimeout(() => {
try { try {
targetSwimlaneId = targetSwimlaneDom.attr('id').replace('swimlane-', ''); targetSwimlaneId = targetSwimlaneDom.attr('id').replace('swimlane-', '');
} catch (error) { } catch (error) {
console.error('Error getting target swimlane ID:', error);
return; return;
} }
} else { } else {
@ -808,7 +804,6 @@ setTimeout(() => {
$set: updateData, $set: updateData,
}); });
} catch (error) { } catch (error) {
console.error('Error updating list:', error);
return; return;
} }
@ -879,7 +874,6 @@ setTimeout(() => {
const listDomElement = ui.item.get(0); const listDomElement = ui.item.get(0);
if (!listDomElement) { if (!listDomElement) {
console.error('List DOM element not found during drag stop');
return; return;
} }
@ -887,12 +881,10 @@ setTimeout(() => {
try { try {
list = Blaze.getData(listDomElement); list = Blaze.getData(listDomElement);
} catch (error) { } catch (error) {
console.error('Error getting list data:', error);
return; return;
} }
if (!list) { if (!list) {
console.error('List data not found for element:', listDomElement);
return; return;
} }
@ -905,7 +897,6 @@ setTimeout(() => {
try { try {
targetSwimlaneId = targetSwimlaneDom.attr('id').replace('swimlane-', ''); targetSwimlaneId = targetSwimlaneDom.attr('id').replace('swimlane-', '');
} catch (error) { } catch (error) {
console.error('Error getting target swimlane ID:', error);
return; return;
} }
} else { } else {
@ -957,7 +948,6 @@ setTimeout(() => {
$set: updateData, $set: updateData,
}); });
} catch (error) { } catch (error) {
console.error('Error updating list:', error);
return; return;
} }