hasFilterType is broken
averrin opened this issue · 0 comments
averrin commented
The hasFilterType
function tries to call getFlag
on placeable instead of its document.
Error:
Uncaught (in promise) TypeError: placeable.getFlag is not a function
[Detected 2 packages: tokenmagic, director]
at Object.hasFilterType (tokenmagic.js:633)
at Object.execute (Integrations.js:79)
at Actions.js:41
at Array.forEach (<anonymous>)
at Action.run (Actions.js:41)
workaround:
object.getFlag = object.document.getFlag.bind(object.document);
TokenMagic.hasFilterType(object, "bevel");