stuff
This commit is contained in:
parent
9e45b0755d
commit
b4bbd2e3ef
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue