You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When dragging a token that doesn't have "represents" property set to the game board the API console outputs an error - invalid parameter (empty) for getAttrByName(). This is caused by function handleAddToken:
handleAddToken = (obj) => {
setStatusmarker(obj, (getAttrByName(obj.get('represents'), 'inspiration', 'current') === 'on'));
},
There is no validation against undefined or empty "represents". Simplest fix:
When dragging a token that doesn't have "represents" property set to the game board the API console outputs an error - invalid parameter (empty) for getAttrByName(). This is caused by function handleAddToken:
handleAddToken = (obj) => {
setStatusmarker(obj, (getAttrByName(obj.get('represents'), 'inspiration', 'current') === 'on'));
},
There is no validation against undefined or empty "represents". Simplest fix:
The text was updated successfully, but these errors were encountered: