mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-06-01 20:29:29 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user