This commit is contained in:
Mirco Wittrien 2019-11-25 21:15:48 +01:00
parent 2b05eb012d
commit 2055247e65
2 changed files with 3 additions and 2 deletions

View File

@ -6797,7 +6797,8 @@ var BDFDB = {
if (typeof this.props.setRef == "function") this.props.setRef(this.props.guild.id, e)
}
componentDidMount() {
for (let child of BDFDB.ReactUtils.findDOMNode(this).querySelectorAll("a")) child.setAttribute("draggable", false);
let node = BDFDB.ReactUtils.findDOMNode(this);
if (node) for (let child of node.querySelectorAll("a")) child.setAttribute("draggable", false);
}
render() {
if (!this.props.guild) return null;

File diff suppressed because one or more lines are too long