I am receiving a critical error when calling toFront() I am drawing a card this way: cardId = drawCard(fromDeckId, bottomCardId); The card is correctly placed in the Discard pile for the deck. Then I am playing that card to the table this way: if(cardId){ playCardToTable(cardId, {left: left, top: top, isdrawing: true}); } The card is correctly paced on the table. Then I look for that card in the deck this way: let cardAfterBeingPlayedToTable = findObjs({ type: 'card', deckid: fromDeckId, id: cardId })[0]; The card is correctly found. Then I'm trying to bring that card to the front, this way: if(cardAfterBeingPlayedToTable){ toFront(cardAfterBeingPlayedToTable); } Or this way: if(cardAfterBeingPlayedToTable){ setTimeout(function() {toFront(cardAfterBeingPlayedToTable);}, 1000); } But then the scripts are disabled with this error: For reference, the error message generated was: Error: Could not find page for object.
undefined This code was working fine for me like 1 week ago, but it now has stopped working for some reason. Has this toFront() function changed or is this a bug that needs to be addressed? Or am I doing something wrong? For now I must disable the call to that function as it's disabling the entire set of Scripts... Thank you!