Fix bug with adding tokens when no map is selected
This commit is contained in:
parent
e892661016
commit
ddf3a6daed
@ -273,6 +273,9 @@ function NetworkedMapAndTokens({ session }) {
|
||||
*/
|
||||
|
||||
async function handleMapTokenStateCreate(tokenState) {
|
||||
if (!currentMap || !currentMapState) {
|
||||
return;
|
||||
}
|
||||
// If file type token send the token to the other peers
|
||||
const token = getToken(tokenState.tokenId);
|
||||
if (token && token.type === "file") {
|
||||
|
Loading…
x
Reference in New Issue
Block a user