Skip to content

Commit

Permalink
Merge pull request #89 from Saibot393/main
Browse files Browse the repository at this point in the history
Fixed bug in reselectTokenAfterInteraction function
  • Loading branch information
p4535992 authored Nov 19, 2023
2 parents 9c2191e + 0706558 commit d9ec98e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scripts/ArmsReachHelper.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ export const reselectTokenAfterInteraction = function (character) {
// DO NOTHING
} else {
const observable = canvas.tokens?.placeables.filter((t) => t.id === character.id);
if (observable !== undefined) {
if (observable.length) {
observable[0].control();
}
}
Expand Down

0 comments on commit d9ec98e

Please sign in to comment.