bugfix: empty data fields cause error in gridlogic (this happens when items are rearranged but not processed in index order)

This commit is contained in:
chfhtw
2026-04-27 15:20:24 +02:00
parent 7ae34e0640
commit 6d0ab0d4aa
+2
View File
@@ -58,6 +58,8 @@ class GridLogic {
item.frame.forEach(f => intermGrid.grid[f] = -1);
intermGrid.data.forEach(currItem => {
if (!currItem)
return;
if (currItem.pinned) {
if (!currItem.frame)
currItem.frame = intermGrid.getItemFrame(currItem);