This commit is contained in:
Mirco Wittrien 2020-10-30 16:31:52 +01:00
parent 9e45b0755d
commit b4bbd2e3ef
2 changed files with 2 additions and 2 deletions

View File

@ -2181,7 +2181,7 @@ module.exports = (_ => {
BDFDB.ReactUtils.findParent = function (nodeOrInstance, config) {
if (!nodeOrInstance || !BDFDB.ObjectUtils.is(config) || !config.name && !config.key && !config.props && !config.filter) return [null, -1];
let instance = Node.prototype.isPrototypeOf(nodeOrInstance) ? BDFDB.ReactUtils.getInstance(nodeOrInstance) : nodeOrInstance;
if (!BDFDB.ObjectUtils.is(instance) && !BDFDB.ArrayUtils.is(instance)) return [null, -1];
if (!BDFDB.ObjectUtils.is(instance) && !BDFDB.ArrayUtils.is(instance) || instance.props && typeof instance.props.children == "function") return [null, -1];
config.name = config.name && [config.name].flat().filter(n => n);
config.key = config.key && [config.key].flat().filter(n => n);
config.props = config.props && [config.props].flat().filter(n => n);

View File

@ -9,4 +9,4 @@
[patreon-badge]: https://img.shields.io/badge/Patreon-Support!-%23F96854.svg?logo=patreon&style=flat
[patreon-link]: https://patreon.com/MircoWittrien
Get a notification when a Friend or a User your choose to observe changes their online status, can be configured individually in the settings
Get a notification when a Friend or a User you choose to observe changes their online status, can be configured individually in the settings