fantasycalendar / FoundryVTT-Tagger

Other
6 stars 4 forks source link

Passing Tagger.hasTags an array of objects fails #19

Closed Richard-Hounshell closed 2 years ago

Richard-Hounshell commented 2 years ago

Describe the bug The documentation for hasTags indicates that it can accept an array for the inObject parameter, but when passed an array returns an error.

To Reproduce Steps to reproduce the behavior:

  1. Go to console
  2. Type Tagger.hasTags(Tagger.getByTag("Tag"),"Tag") - Replace 'Tag' with an applicable Tag.
  3. Press 'Enter'
  4. See error

Expected behavior hasTags will return a Boolean value of whether the passed array has the given tag (unclear if all items would need to have the tag to return true).

Screenshots image

Setup:

Foundry Version: 9.269 System Version: DND5e 1.6.3 Tagger Version: 1.3.6 Browser & version: Microsoft Edge Version 105.0.1343.33 (Official build) (64-bit) Active modules:

Tagger MATT

Haxxer commented 2 years ago

Fixed in 1.3.7