"unicorn/no-null": "off",
"unicorn/no-unused-properties": "error",
"unicorn/no-useless-undefined": "off",
- "unicorn/prefer-array-find": "off",
"unicorn/prefer-dataset": "off",
"unicorn/prefer-node-append": "off",
"unicorn/prefer-node-remove": "off",
const container = SelectorEngine.findOne(this._selector)
if (actives) {
- const tempActiveData = actives.filter(elem => container !== elem)
- activesData = tempActiveData[0] ? Data.getData(tempActiveData[0], DATA_KEY) : null
+ const tempActiveData = actives.find(elem => container !== elem)
+ activesData = tempActiveData ? Data.getData(tempActiveData, DATA_KEY) : null
if (activesData && activesData._isTransitioning) {
return